On 2016-2-29 15:13, saad khalid wrote:
r,theta,y =var("r,theta,y") x =r*cos(theta) f1 =x^2+y^2 f1(x).diff(x) |I'm getting 2x as the output, when what I want is -2x. What am I doing wrong?
When you take the partial derivative of f1 with respect to x, you hold y constant and ignore r. -- *\\* Anton Sherwood *\\* www.bendwavy.org -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
