Robert Bradshaw wrote: > 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. >
Mikie effectively isn't using "eval", right? That line (and the "eqns" variable) is not being used. Jason -- Jason Grout --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---