On Jun 28, 7:57 am, Jason Grout <jason-s...@creativetrax.com> wrote: > sage: preparse('a(x)=2*x') > '__tmp__=var("x"); a = symbolic_expression(Integer(2)*x).function(x)' And, as we know now, if we do this in the notebook, we can even change the value of 2 afterwards:
def f(x): return 2*x print f(3) _sage_const_2=3 print f(3) ////////////////// 6 9 [see the result of sage.misc.preparser.preparse_file("2*x")] -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org