On Apr 1, 2:34 pm, Michael Orlitzky <mich...@orlitzky.com> wrote:
> If you think you want derivatives right now, you're probably better off
> using aptly-named symbolic variables, and performing the differentiation
> later on once you're done manipulating the "derivatives."
>
>    sage: f = function('f', x)
>    sage: f_prime = f.diff(x)
>    sage: f_prime.simplify()
>    D[0](f)(x)
>    sage: f_prime(0).simplify()
>    ...
>    NotImplementedError: arguments must be distinct variables

Most of these can be fixed by using a set of temporary intermediate
variables. See

http://trac.sagemath.org/sage_trac/ticket/7377#comment:54

for some ideas. The restrictions that currently exist on evaluating
FDerivativeOperator expressions are largely unnecessary. Probably the
person who implemented it did the minimum amount of work to transition
from "named variable derivatives" to "position-based derivatives".

Removing these restrictions is probably a nice student project (you'll
get to see the internals of quite some parts of sage, but I don't
think it will ever be overly complicated)

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to