How to calculate the speed of the moving point

In summary: The graph will have time on the x-axis and distance on the y-axis. You can find average speed from the slope of the line between two points on the line, or you can find the instantaneous speed at a single point by looking at the slope of the tangent line at that point.In summary, the conversation discusses a program that calculates the speed of a moving point, similar to a computer mouse cursor. The formula for calculating speed requires two points with three coordinates each, and the time interval between the points must be small to get an accurate measurement. Suggestions are given for recording multiple samples and graphing to find average or instantaneous speed.
  • #1
zalis
3
0
hey,

i am not a physician my self but a programmer and currently i am working on a little program that would calculate the speed of the point.
i have no clue how far is that point going or for how long it will be traveling for.

ok so i have a point (consisting of x and y coordinates)
the point can move in any direction.
can stop and start moving again.
the point can move faster and then slow down(stop) gently or vise-versa .
the distance is unknown.
the travel time is unknown.
the future direction is unknown.
only know factor is the current or previous coordinates of that point.

to make it clearer think of it as a computers mouse cursor. what speed is the mouse cursor moving at when you move it?is there a formula that could calculate the speed of that point?
any suggestions/links or whatever information will help! i have been stuck on this for
months...

please when you answer do not use physics terminology i will not be able to understand so try explaining everything like to a child :)

p.s the speed could be anything from meter per second, pixels per millisecond or miles per hour. as long as i have some sort of formula ill apply it i guess ..:)

thank you
 
Last edited:
Physics news on Phys.org
  • #2
I'm no physician, either. But I do like to think of myself as a physicist:smile:
Some simple formulae on the equations of motion can be found here: http://en.wikipedia.org/wiki/Equations_of_motion"
 
Last edited by a moderator:
  • #3
You need to have time to calculate speed. If the point moved 3 pixels towards right in one second, the speed is 3 pixels per second towards right. Similarly you can have a vertical speed also, example 4 pixels upwards per second. After knowing the horizontal and vertical speeds, you need to use the Pythagoras theorem to calculate the net speed. Here it will be Squareroot(3^2 + 4^2) = Squareroot(25) = 5 pixels per second in an inclined direction.
 
  • #4
You need two points with 3 coordinates each: (x1,y1,t1) and (x2,y2,t2)

sqrt((y2-y1)^2 +(x2-x1)^2)/(t2-t1)
 
  • #5
ok i sort of understand why i need two points so one of my points could be the 0,0 and the other point could be the point which speeds i want to track. However am i right to think that those three coordinates mean that the third coordinate would stand for the time?
and what would be the time interval?

i understand from the formula above if i set the time for example 1 minute and if i move the point by 50 pixels than the speed is 50pixels/min. what if i move my point by 50 pixels in 30 seconds and for the other 30 seconds i would stand still? i would still get 50pixels/min!
which is obviously not true because this would only show the average speed of that past minute not the present speed.

would there be a better way to solve this ?

again any suggestions are mostly welcome
 
  • #6
The two coordinates are the same point, or object, but different times and locations. You need to use small time intervals to get a more accurate answer, not one minute. In the equation about the time interval is t2 - t1. So read your point's coordinates, then 1/2 a second later read them again. Plug those two sets of x,y,t coordinates into the equation and it will give you average velocity over that half second.
 
  • #7
thanks for your response. i understand what you are trying to say now, thanks. nonetheless in half a second you would only be able to cover maximum of 5 pixels or so... in this case my numbers wouldn't very much most of the time it would stay max 4-5 pixels per 1/2 second if i am moving very slowly it would be around 2-3 pixels per 1/2 second. these values aren't vary significant and wouldn't make much meaning.
longer time interval i understand would lead to more precise value, however longer time intervals would have the problem i have explained above...

maybe there is a totally different way to calculate that velocity of the point which would be in real time not for the previous time interval...

thank you very much for all the help
 
  • #8
Essentially you will need to sample it; that is, record the position at regular time intervals. It could be every second, it could be every millisecond. It depends how accurate your output needs to be.

Regardless, you can only get an average velocity, not an average speed. The smaller time interval you choose, the more they will be the same.
 
  • #9
Expanding on what the king said, you need to record many samples then you can graph or average it or whatever you want. So take a reading every half second, record 120 readings for your one minute total. Then graph it.
 

1. What is the formula for calculating speed?

The formula for calculating speed is speed = distance / time. This means that the speed of a moving point is equal to the distance it travels divided by the time it takes to travel that distance.

2. How do I measure the distance and time of a moving point?

To measure the distance, you can use a ruler or measuring tape to determine the length of the path the point travels. To measure the time, you can use a stopwatch or timer to record how long it takes the point to travel that distance.

3. What units should I use for the distance and time in the speed formula?

The units for distance and time should be consistent in order to accurately calculate speed. For example, if the distance is measured in meters, then the time should be measured in seconds. This will result in a speed unit of meters per second (m/s).

4. Can I calculate the speed of a point that changes direction?

Yes, you can still calculate the speed of a point that changes direction. However, the distance and time measurements may be more complex as you will need to account for the distance traveled in each direction and the time it takes to travel in each direction.

5. Is speed the same as velocity?

No, speed and velocity are not the same. Speed is a measure of how fast an object is moving, while velocity is a measure of how fast an object is moving in a specific direction. Therefore, velocity takes into account both the speed and direction of a moving object.

Similar threads

Replies
15
Views
1K
Replies
4
Views
1K
  • Mechanics
Replies
11
Views
2K
Replies
19
Views
1K
Replies
55
Views
3K
Replies
13
Views
1K
  • Mechanics
Replies
22
Views
7K
Back
Top