[sympy] sympy findroot trouble

2013-04-30 Thread Pushpak Dagade
I am trying to create a simple 2d plot by solving a equation in x and y, for given y. I am using sympy.mpmath.findroot to solve the equation. It solves it correctly for all 'y' points, except for a few ones, where the 'x' I get on solving starts diverging (giving no solution if I take points

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