I am using NBodySimulation and want to find derivatives of the coordinates. What I have done looks like this:
data = NBodySimulation["InverseSquare", <|.....|>
xx[t_] := Evaluate[data["body1", "Position", t]][[1]]
yy[t_] := Evaluate[data["body1", "Position", t]][[2]]
zz[t_] := Evaluate[data["body1", "Position", t]][[3]]
vxx[t_] := Evaluate[data["body1", "Velocity", t]][[1]]
vyy[t_] := Evaluate[data["body1", "Velocity", t]][[2]]
vzz[t_] := Evaluate[data["body1", "Velocity", t]][[3]]
dvxx[t_] := vxx'[t]
dvyy[t_] := vyy'[t]
dvzz[t_] := vzz'[t]
The coordinates xx, yy and zz seem to work properly for body1, but the last six functions do not provide correct results. How can I plot the first and second derivatives of the position coordinates?
