Function value at parametric path
Hi,
How can I get the value of a 2D function, say f(x,y)=x^3+y^3, along the path determined by a parametric function, say M(x(t)=cos(t),y(t)=sint(t))?
Hi,
How can I get the value of a 2D function, say f(x,y)=x^3+y^3, along the path determined by a parametric function, say M(x(t)=cos(t),y(t)=sint(t))?
I am not sure this is what you are looking for, but I hope this helps. If not let me know what you are looking for
t=var('t')
x=function('x')
y=function('y')
f=x(t)^3+y(t)^3
g=f.substitute_function(x,sin).substitute_function(y,cos)
g(pi)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-04-20 10:59:08 +0100
Seen: 240 times
Last updated: Apr 20 '12