I am using a Python script that starts a twisted server. And have
several Sage functions defined. Thus the Sage preparser is not
available. Here is the the function for integrating
def Integrate3a(exp1,exp2):
s1=type(exp1);print s1
R1 = integrate(exp1,exp2)
return R1
The values are coming in as strings and I am converting them to
calculus type. It is kind of working, but when I put 2*x^2-x or
2*x**2-x I get "not a valid Python identifier. What is real strange
is If I put
"x-2*x^2" it works.
Is there anyway to get the Sage preparser to work in the Python
script.
Thanx
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---