Let's say I have this function
f(t) = 4*sin(a(t)) + x(t)*y(t) + h + cos(y(t))*sin(x(t))
How would I compute its derivative with respect to time?
Let's say I have this function
f(t) = 4*sin(a(t)) + x(t)*y(t) + h + cos(y(t))*sin(x(t))
How would I compute its derivative with respect to time?
You need to declare the variables and the functions inside it as being symbolic and then use diff:
Giving the following (messy) output:
Note that since a(t),x(t) and y(t) are simply defined as functions of 't' we are stuck with their 'symbolic' derivative (I don't know the term for that sorry)...i.e. diff(a(t)) for instance.
Hope it's what you were after!