evaluate
evaluate s
-- treating the contents of the string s as code in the
Macaulay 2 language, parse it in its own scope, evaluate it and return
the value.
i1 = evaluate "2+2"
o1 = 4
i2 = evaluate "a :=2"
o2 = 2
i3 = a
o3 = a
o3 : Symbol
Go to main index.
Go to concepts index.