What's wrong with :
sage: var("a,x")
(a, x)
sage: z=function("z",x)
sage: f(x)=2*x+2*z*diff(z,x)/sqrt(x^2+a^2+z^2)
sage: f
x |--> 2*z(x)*D[0](z)(x)/sqrt(a^2 + x^2 + z(x)^2) + 2*x
hmmm ? You can also write :
sage: foo(x)=2*x+2*z(x)*diff(z(x),x)/sqrt(x^2+a^2+z(x)^2)
sage: foo
x |--> 2*z(x)*D[0](z)(x)/sqrt(a^2 + x^2 + z(x)^2) + 2*x
HTH,
--
Emmanuel Charpentier
Le samedi 26 juillet 2014 19:13:32 UTC+2, Chris Maness a écrit :
>
> I would like to take the derivative of a function defined as as such that:
>
> f(x,z)=(2*x+2*z*(dz/dx))/sqrt(x^2+a^2+z^2) and z=z(x) (z is an
> unknown function of x). I am working on Euler-Legrange stuff.
>
> Thanks,
> Chris
>
--
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.