On Feb 15, 2010, at 7:46 AM, Viny wrote:
I'm working on two versions of sage: sage4.3.1 and sage4.1.1.
The evaluation
sage_stuff = sage_eval(string,locals=dico,preparse='False') where
string contains a list of symbolic expressions, dico it's my
dictionnary of variables, gives an error type wit
I'm working on two versions of sage: sage4.3.1 and sage4.1.1.
The evaluation
sage_stuff = sage_eval(string,locals=dico,preparse='False') where
string contains a list of symbolic expressions, dico it's my
dictionnary of variables, gives an error type with sage4.3.1 but work
well with the version s
expression = 'y+2*y*x+a'
f3 = sage_eval( expression, locals={'y':4, 'a':x} )
shows: 9x+4
f4 = sage_eval( expression, locals={'y':4, 'a':a} )
says
> Traceback (most recent call last):
> f4 = sage_eval( expression, locals={'y':4, 'a':a} )
> NameError: name 'a' is not defined
--~--~-