AbigailRocketblast
New member
- Joined
- Oct 1, 2013
- Messages
- 11
Hello,
It is years since I did calculus. I have a problem in which I need to convert velocity data to acceleration and acceleration data to velocity as part of a computer program.
The data is real world data that comes to my program at something like 40 samples per second. I have written some coe for both differentiation and integration, but am having difficulty testing what I have written is correct. If I get the following values of velocity, can you confirm that the calculated acceleration values are correct:
40sps --> 0.025
Velocity Acceleration
0.0 -
0.3 12 [(0.3-0.0) / 0.025]
0.2 - 4 [(0.2-0.3) / 0.025]
0.7 20 [(0.7-0.2) / 0.025]
1.2 20 [(1.2-0.7) / 0.025]
0.8 -16 ... etc ...
0.8 0
0.9 4
1.1 8
1.3 8
Thanks for your help
( the values looked cleaner in the editor - is it still understandable, though?)
It is years since I did calculus. I have a problem in which I need to convert velocity data to acceleration and acceleration data to velocity as part of a computer program.
The data is real world data that comes to my program at something like 40 samples per second. I have written some coe for both differentiation and integration, but am having difficulty testing what I have written is correct. If I get the following values of velocity, can you confirm that the calculated acceleration values are correct:
40sps --> 0.025
Velocity Acceleration
0.0 -
0.3 12 [(0.3-0.0) / 0.025]
0.2 - 4 [(0.2-0.3) / 0.025]
0.7 20 [(0.7-0.2) / 0.025]
1.2 20 [(1.2-0.7) / 0.025]
0.8 -16 ... etc ...
0.8 0
0.9 4
1.1 8
1.3 8
Thanks for your help
( the values looked cleaner in the editor - is it still understandable, though?)
Last edited: