Re: [sympy] Re: modify latex representation of user-defined function

2014-06-14 Thread Aaron Meurer
You may want to subclass gamma (the original SymPy version) instead of Function, so that you keep all the gamma behavior. Aaron Meurer On Fri, Jun 6, 2014 at 4:37 PM, Björn Dahlgren bjo...@gmail.com wrote: On Friday, 6 June 2014 23:13:39 UTC+2, Andrei Berceanu wrote: I define a function

[sympy] Re: modify latex representation of user-defined function

2014-06-06 Thread Björn Dahlgren
On Friday, 6 June 2014 23:13:39 UTC+2, Andrei Berceanu wrote: I define a function gamma with the following code: from sympy import * x = Symbol('x') class gamma(Function): pass Its latex representation is print latex(gamma(x)) \Gamma\left(x\right) whereas I would like it to be