Dear All,
I want to ask your advise. I have a variable q as a function of time but I already have the values of q for each time step. So do you know any command in Mathematica for getting the derivative values of q? There are some commands such as: dq/dt = D[q[t],t] or dq/dt = q'[t] but I think I can use that command if I have q as an equation but I have q as values.
So I used the below method to calculate the derivative:
dqdt = Table[(q[t + 1] - q[t - 1])/2, {t, 1, 99}]
Please refer to attach. titled "Derivative.nb" for the script. So may I know if the above method is correct? And may I know the alternative ways for calculating derivative like in this case? Thanks a lot for your kind attention.
Best Regards, Intan
Attachments: