Thanks all.
Even better when I discovered the locals option, which enables control of
variable evaluation.
Graham
On 19 April 2012 14:40, Martin Albrecht wrote:
> Try
>
> sage: sage_eval?
>
> which preparses it's input while eval does not.
>
> On Thursday 19 Apr 2012, Graham Gerrard wrote:
> >
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=0