On Tue, 27 Nov 2012 11:23:01 +0100
Serge Torres <serge.tor...@laposte.net> wrote:

> I'm pretty sure this question has been answered over and over but
> despite intensive googling I could not find these answers.
> 
> I have expressions (say, f = exp(x)) that want to export to another
> computing system.
> 
> str(f) is 'e^x' but the target system does not understand it.
> 
> Is there a way to have a string version of f with the exp() notation
> preserved?

This is #11428 on trac.

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

The patch on the ticket does not work. It needs to go through the
registry of functions stored in Pynac and update the name or the
printing functions there. Unfortunately I don't have time to implement
that right now.


As a workaround in your case, you can modify the definition of
Function_exp in sage/functions/log.py to set a latex_name in the
initializer, or if that doesn't work, define a _print_latex_ method.


Cheers,
Burcin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to