asked 2011-10-09 06:02:41 -0500
This post is a wiki. Anyone with karma >750 is welcome to improve it.
Is there a way to autodeclare variables?
I want to import an expression from another computer program. Now this expression is stored as a string, that means I have to evaluate it in sage.
It works fine, but if the expression contains variables, these have to be manually declared first as var('variables').
I want to do this automatically, e.g.: sage_eval(expression, autodeclarevariables=on)
Is there a way to do something like that?