Ask Your Question
0

Function value at parametric path

asked 2012-04-20 10:59:08 +0100

sagemb gravatar image

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))?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-04-20 14:31:32 +0100

Shashank gravatar image

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)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-04-20 10:59:08 +0100

Seen: 246 times

Last updated: Apr 20 '12