Re: [sympy] sympy.nsolve seems to solve system of non linear equations incorrectly

2013-04-28 Thread Pushpak Dagade
Thanks a lot chris for your timely help! I hope this helps me out in my work ahead. On Friday, 26 April 2013 01:44:21 UTC+5:30, smichr wrote: Your tolerance is too high so you are not as close to the roots as you would like to be. Also, whenever there is a denominator, it is better to get

[sympy] sympy.nsolve seems to solve system of non linear equations incorrectly

2013-04-25 Thread Pushpak Dagade
Hi, I am trying to solve a system of 3 non linear equations with 3 variables using `sympy.nsolve`. However, when I re substitute the values back just to verify that the original equations are satisfied, I find out that not all are getting satisfied, even approximately. Is there something wrong

Re: [sympy] sympy.nsolve seems to solve system of non linear equations incorrectly

2013-04-25 Thread Chris Smith
Your tolerance is too high so you are not as close to the roots as you would like to be. Also, whenever there is a denominator, it is better to get rid of it as this helps the numerical process. nsolve([numer(i.normal()).expand() for i in (eqn1,eqn2,eqn3)],(p,q,r),(.01, .2,18)) matrix(