Hi

On Wed, Jun 10, 2009 at 7:23 PM, Mike Hansen<mhan...@gmail.com> wrote:
> On Wed, Jun 10, 2009 at 3:16 PM, Jason Grout<jason-s...@creativetrax.com> 
> wrote:
>> I agree with Robert---functions have ordered, named parameters (thanks
>> to your patch that deprecated not specifying the order of variables!),
>> so we should be able to convert back and forth between D[i](f) and
>> \frac{df}{d<parameter>} or \frac{\partial f}{\partial<parameter>}
>> unambiguously.
>
> No, it's not that easy.  These really are two different things.
> Converting from the D[] notation to the diff() notation requires the
> introduction of a dummy variable and an evaluation.


I have re-based (to 4.0.1) an old patch for the ticket

http://trac.sagemath.org/sage_trac/ticket/5711

This patch will allow typesetting of derivatives in both formats.
By default it will typeset "D[0]f(x)" as  df/dx (diff format).

One can switch between two typesetting formats as follows
-----------
psi(x) = function('psi',x)
g = diff(psi(x),x)
latex(g)
\frac{d \psi\left(x\right)}{d x}

# Switch to D format
sage.symbolic.pynac.typeset_d_as_diff=False

latex(g)
D[0]\psi\left(x\right)
----------

I would appreciate if someone could review it.

Thanks,
Golam

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

Reply via email to