i have data blocks of measurement-data from an acceleration sensor. But I need the displacement. By integration of this data two times i should get the displacement. But I have no idea how to write a program in C, that does this job. Who can help me ?
setting x = u' you get a first order system of differential equations like this:
d'x/dt = g
du = x
with u'(0) = x(0) = k; and u(0) = j;
what you should do is pick up a numerical integrator like Euler, sympletic-Euler, Verlet or Runge-Kutta 4 and solve the equations iteratively using the result of iteration n to compute the iteration n+1;