On 1/10/12 5:03 PM, LFS wrote:
Hi
I looked around quite a bit but probably not in the right places?
I found I can define a vector function and how to get its derivative
vector function.
Is there a way to get at the component functions and/or a way to
calculate the magnitude function of rprime?

var ('t')
r=vector(t,t^2,t^3)
rprime=diff(r,t)

You can also define the function like this:

sage: r(t) = (t, t^2, t^3)

Then it is:

rprime=r.diff(t) # or r.diff() to give the matrix derivative
rprime.norm() # or abs(rprime)
r[0] # or r[1] or r[2]

These work with "callable" functions, so each result is a *function* with input variable t.

Thanks,

Jason

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to