#6344: Typesetting partial derivatives in new symbolics
---------------------------------+--------------------------
       Reporter:  gmhossain      |        Owner:  burcin
           Type:  enhancement    |       Status:  needs_work
       Priority:  major          |    Milestone:  sage-6.4
      Component:  symbolics      |   Resolution:
       Keywords:                 |    Merged in:
        Authors:  Burcin Erocal  |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+--------------------------

Comment (by nbruin):

 Replying to [comment:13 schymans]:
 > All I wanted to do is to change the _latex_ representation of the
 FDerivativeOperator and added the following lines to
 src/sage/symbolic/operators.py:

 Looks like the wrong place to hook into this. For symbolic expressions.
 `self._latex_` invokes `SR._latex_element_` which calls straight into
 Pynac via ` GEx_to_str_latex(&x._gobj)`. Your experiment shows that this
 doesn't dispatch to `_latex_` methods on operators. Perhaps there's
 another hook?

 Incidentally, your code wouldn't work, because that's not how
 FDerivateOperators occur in code:

 {{{
 sage: var("x,y")
 (x, y)
 sage: function('f',x,y)
 f(x, y)
 sage: g=diff(f(x,y),x,y)
 sage: g
 D[0, 1](f)(x, y)
 sage: g.operator()
 D[0, 1](f)
 sage: type(g.operator())
 <class 'sage.symbolic.operators.FDerivativeOperator'>
 sage: g.operator()._f
 f
 }}}
 As you can see, there are no variable names to refer to. That's why this
 ticket has stalled: if you want to do this, you need to recognize on the
 level of `g` that the operator is an `FDerivativeOperator` and hence that,
 if the operands of `g` are distinct, simple symbolic variables, that the
 derivative could be written in Leibnitz notation.

 Clearly, people haven't found the effort required worth the payoff.

--
Ticket URL: <http://trac.sagemath.org/ticket/6344#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to