On 1/17/12 12:01 PM, William Stein wrote:

Nils example is interesting though, since it suggests using SR.var
instead of var in preparsing callable symbolic function creation.
E.g., instead of

sage: preparse('f(x) = 10*x')
'__tmp__=var("x"); f = symbolic_expression(Integer(10)*x).function(x)'

do

sage: preparse('f(x) = 10*x')
'__tmp__=SR.var("x"); f = symbolic_expression(Integer(10)*x).function(x)'

Wouldn't that need to be:

'x=SR.var("x"); f = symbolic_expression(Integer(10)*x).function(x)'

since x is not injected into the namespace then?

Thanks,

Jason

--
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

Reply via email to