#6344: [with patch, needs review] Typesetting partial derivatives in new
symbolics
-------------------------+--------------------------------------------------
Reporter: gmhossain | Owner: burcin
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-4.1.1
Component: symbolics | Keywords:
Reviewer: | Author: Burcin Erocal
Merged: |
-------------------------+--------------------------------------------------
Changes (by newvalueoldvalue):
* cc: jason, mvngu (added)
* owner: => burcin
* status: new => assigned
* author: => Burcin Erocal
Comment:
I uploaded a new patch at
attachment:trac_6344-symbolic_derivative_print.patch.
The new patch keeps the text mode printing similar to the old one, but
changes the printed parameters to indicate how many times each argument is
differentiated. E.g., old output:
{{{
sage: var('x,y')
sage: f = function('f')
sage: f(x).derivative(x)
D[0](f)(x)
sage: f(x,x).derivative(x,2)
D[0, 0](f)(x, x) + 2*D[0, 1](f)(x, x) + D[1, 1](f)(x, x)
}}}
New output:
{{{
sage: f(x).derivative(x)
D[1](f)(x)
sage: f(x,x).derivative(x,2)
D[2, 0](f)(x, x) + 2*D[1, 1](f)(x, x) + D[0, 2](f)(x, x)
}}}
New latex output:
{{{
sage: latex(f(x).derivative(x))
f'\left(x\right)
sage: latex(f(x,x).derivative(x,2))
f^{(2,0)}\left(x, x\right) + 2 \, f^{(1,1)}\left(x, x\right) +
f^{(0,2)}\left(x, x\right)
}}}
It would be better to add more documentation to explain the output,
provide conversions to "textbook style" and fix other problems that pop up
when printing derivatives:
{{{
sage: binomial(x,y).derivative(x)
<boom>
sage: latex(floor(x).derivative(x))
D[0]\left \lfloor x \right \rfloor
sage: latex(ceil(x).derivative(x))
D[0]\left \lceil x \right \rceil
}}}
However, I think we should settle on an output style ASAP, without letting
too many releases go by.
Jason, Minh, can one (or both) of you review this?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6344#comment:2>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---