On Wednesday, February 22, 2017 at 10:49:11 PM UTC-8, Ralf Stephan wrote:
>
> Yes, there is no symbolic diff function and so it does not appear
> in the dictionary for translating strings to expressions. It has other
> consequences too so I consider writing a dummy function like
> Function_sum a good idea.
>
 
I agree. In fact, this printing has only been in place since 
https://trac.sagemath.org/ticket/21286 . Before we'd get D[0](f)(x). That's 
in fact also not so hard to parse. With something along the lines of:

from sage.symbolic.operators import FDerivativeOperator
class Doperator(object):
  def __getitem__(self,L):
    if not(isinstance(L,tuple)):
      L=(L,)
    return lambda f: FDerivativeOperator(f,L)
D=Doperator()
 
in place, we can just write D[0](sin)(x) .

If you're going to make diff(...) parseable, perhaps we can make the above 
as well. Whether we can bind this to the toplevel letter D is another 
matter.

-- 
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.

Reply via email to