Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

functions with vector inputs

Are vector functions supported in sage?

as in:

f1(r,phi,theta) = 1/r
f2(r,phi,theta) = 1
f3(r,phi,theta) = 1
F = vector([f1, f2, f3])
G=gradient(F) # vector function

An ancient post seems to suggest that gradient has to be defined with a positional python-argument like gradient(*F).

Is there a way for "gradient" to take the vector symbolically as an argument?

functions with vector inputs

Are vector functions supported in sage?

as in:

f1(r,phi,theta) = 1/r
f2(r,phi,theta) = 1
f3(r,phi,theta) = 1
F = vector([f1, f2, f3])
G=gradient(F) G=rot(F) # vector function

An ancient post seems to suggest that gradient rot has to be defined with a positional python-argument like gradient(*F).rot(*F).

Is there a way for "gradient" "rot" to take the vector symbolically as an argument?