On Oct 1, 4:21 pm, pragma <[EMAIL PROTECTED]> wrote: > ive tried this but it doesnt seem to do the job: > > class c_arccos(sage.calculus.calculus.Function_arccos): > def __init__(self): > pass > def _latex_(self): > return "\\arccos" > > p_arccos = c_arccos() > > print latex(p_arccos(1/3)) > print latex(p_arccos) > > ############# > #outputs: > ############ > > \cos^{-1} \left( \frac{1}{3} \right) > \arccos > > the first line still outputs \cos^{-1} instead ofarccos
This seems to work: sage: sage.calculus.calculus.Function_arccos._latex_ = lambda self : "\ \arccos" sage: latex(arccos(1/3)) \arccos \left( \frac{1}{3} \right) Best, /Håkan --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---