Dear Sagers,
For some time I have troubles when working with functions and derivatives.
There are cases when one need to have better latex representation of
derivatives, there are cases when one wants to threat dx/dt as independent
variable and diffrentiate over it (eg. to derive equation of motion form
Lagrangian).
I managed to solve most of my problems by some substitutions, however I
wanted to understand how to do things properly.
Can anybody explain to me the ideas behind:
>f = function('f',x)
>type(f)
<type 'sage.symbolic.expression.Expression'>\n"}
>type( f.diff(x).operator().function() )
<class 'sage.symbolic.function_factory.NewSymbolicFunction'>\n"}
Also I do not get why I cannot get my function back ;-) :
------------------------------
58
f.diff(x).operator().function().variables()
()
f.variables()
(x,)
What I want to do actually is to for a given function generate list of
variables which would represent all derivatives of given degree, with
proper latex_name. I can use that for two things:
- to compute derivative over derivative (threated as independet var.
- to print formulas in nice way
the best
Marcin
--
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/groups/opt_out.