Robert Bradshaw wrote: > @sage.symbolic.function.symbolic > def my_func(x, n): > if x < 0: return 0 > else: return exp(-1/x^n)
How about exposing the many other properties too: @sage.symbolic.function.symbolic(latex_name="\phi",...) def my_func(x,n): ... which translates to: def my_func_eval(x,n): if x < 0: return 0 else ... my_func = function(..., latex_name="\phi",...(any other options), eval_f=my_func_eval) Thanks, Jason -- Jason Grout -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org