So, I switched to the 'sympy.nsolve' method and got the approximate solutions similar to Mathematica. Yes, the system is nonlinear. While the method in the Mathematica code was 'NSolve', the solution set returned was the same for the 'Solve' method.
Regardless, this helped a bunch. Thanks! On Sunday, June 30, 2013 1:29:32 PM UTC-7, Stefan Krastanov wrote: > > The equations are nonlinear and it seems that sympy is unable to solve > them. Maybe there is a way to instruct sympy how to deal with them but > I do not know how. > > However, there is a very big difference between your mathematica code > and your sympy code. In mathematica you are calling `NSolve`, which is > a numeric solver, not a symbolic one. In sympy you are calling > `solve`, which is searching for a general symbolic solution. You > should either use `sympy.nsolve` or something from `scipy`. > `sympy.nsolve` returns only one solution and needs a starting point. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
