int sum=0;
for(int count=0; count<counter; count++)
{
sum += arr[count];
}
double avg = sum/counter;
There's probably more efficient ways, but this is the easiest one I know of. From there, its a matter of another loop through the whole array and a simple if-else statement.
The TI-89 has this function built-in using the simultanious equation solver flash-app that comes installed by default. After you enter your matrix (leave it in homogenious form - the solution side of the augmented matrix doesn't really make a difference) press solve, and after that, I forget the...
Analog - like I said, I'm a complete beginner and am just trying to grasp the basics of electronics, so digital is a bit further than where I am right now in my studies.
Hello!
I'm building a circuit which requires a sound wave to catch up to an electric signal of the same wave generated by a microphone (after its gone through amplification, phase correction, etc of course). Can anyone please help me with this, or at least point me in the right direction?
Just...
The one I use is called Tina - really nice in that it generates various graphs, noise analysis, etc for ya, and has a full-featured (omit print) demo. See http://www.tina.com/ for more info.
First of all, let us discuss the concept of the tension. Essentially, the tension is the force with which the block is being pulled. Therefore, the forces across the "x" plane are the tension and the friction forces, as well as the "x" component of the gravitational force. On the "y" plane, we...
Essentially, this is a problem with requires the use of kinematics and Newton's second law.
The only force acting on the car (neglecting things like drag) is the force of the friction, F_k
Now, we know that F_k = \mu _k N
Here, the normal force N = mg
Now, let us substitute N into F_k...
The answer given by your book is a bit weird, I think: if gravity is the only force acting on the ball, then the acceleration should be constant throughout: -9.81 m/sec^2. But assuming something odd does happen which makes the acceleration change, your ball will first hit the ground at some...
Aside from the simple y=(x-a)^2+b formulas, there's also conics equations for parabolas:
4py=x^2, where p is the distance to your focus or directrix. (the focus is an arbirtrary point, and the directrix is a line whos equation is y=-d, where d is the distance from y=0 to focus).
As far as...
I think that you should be concerned with life rather than death.
Life is short, and is too valueable to waste. Live it to the fullest rather than worry about what will happen to you once you die.
Many religions will tell you different things, many simply believe you rot, and that's it. But...
http://mathworld.wolfram.com/Sum.html has some pretty easy explanations on the topic.
You probably want to go over sequences and series before going into sigma-math. After that, things should be pretty clear.
Today in class we were performing an experiment to determine the speed of sound using a pitch-fork, a mic, a long tube, and a ti calculator.
We ended up with a very nice uniform wave-pattern on the pressure/time graph. Now that we have figured that out, we need to figure out the wavelength to...