ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 07 Jun 2016 02:29:42 -0500Standalone Python/Sage Scriptshttp://ask.sagemath.org/question/33685/standalone-pythonsage-scripts/The tutorial example from
http://doc.sagemath.org/html/en/tutorial/programming.html#standalone-python-sage-scripts
is working only for integers. It does not work for symbolic expressions. It becomes working by renaming the script from "factor" to "factor.sage" and replacing the last line by
print factor(sage_eval(sys.argv[1],locals={'x':x}))
Is there anything wrong in my configuration of Sage?Klaus ScheicherTue, 07 Jun 2016 02:29:42 -0500http://ask.sagemath.org/question/33685/