On Sep 1, 2009, at 9:17 AM, Mikie wrote:

>
> Here is function I am using to solve systems of linear equations.
>
> def MSolveSys(syss):
>    eqns=eval(syss)
>    solns=maxima.solve(syss)
>    return solns
>
> Works great in the notebook, but when I put it in a Python script it
> rounds the coeficients of the variables and thus produces bad
> solutions.

Perhaps eval here is the culprit. You might have to parse it a bit  
yourself. SR("...") will parse expressions.

- Robert


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to