Try 

sage: sage_eval?

which preparses it's input while eval does not.

On Thursday 19 Apr 2012, Graham Gerrard wrote:
> z="1/2*x"
> x=3
> eval(z)
> 0
> z="x*1/2"
> eval(z)
> 3/2
> 
> ??
> 
> Graham

Cheers,
Martin

--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://martinralbrecht.wordpress.com/
_jab: martinralbre...@jabber.ccc.de

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

Reply via email to