Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Taking long time to solve two equations
Replies: 1   Last Post: Aug 9, 2013 5:31 AM

 Messages: [ Previous | Next ]
 kalpana Posts: 13 Registered: 8/9/13
Taking long time to solve two equations
Posted: Aug 9, 2013 4:41 AM

I have to solve two equations. For this, i have taken the equations as the following :
Syms x y eq1 eq2;
eq1 = x^7 + 42.215449*x^6*y + 287.89234 *x^6 + 596.846934 * x^5*y^2 + 8742*x^5*y + 28324*x^5 + 2043*x^4*y^3 + 43094*x^4*y^2 + 266735*x^4*y + 498519*x^4 + 288.63823*x^3*y^4 + 33339*x^3*y^3 + 520794*x^3*y^2 + 2476074*x^3*y + 3223591*x^3 - 208.79156*x^2*y^5 + 6073*x^2*y^4 + 234014*x^2*y^3 + 2220025*x^2*y^2 + 7793982*x^2*y + 8129372*x^2 - 52.07952*x*y^6 + 104.05264*x*y^5 + 35721*x*y^4 + 555238*x*y^3 + 3446089*x*y^2 + 9208694*x*y + 8083970*x - 3.07772*y^7 - 21.7637*y^6 + 1870*y^5 + 42024*y^4 + 374588*y^3 + 1636383*y^2 + 3381409*y + 2510676 ;
eq2 = x^7 + 42.35951*x^6*y + 249.65506*x^6 + 384.45864*x^5*y^2 + 3593*x^5*y + 6262*x^5 + 820.0502*x^4*y^3 + 11020*x^4*y^2 + 42458*x^4*y + 42460*x^4 - 190.762*x^3*y^4 + 323.880*x^3*y^3 + 12187*x^3*y^2 - 14416*x^3*y - 53002*x^3 - 273.565*x^2*y^5 - 10984*x^2*y^4 - 144716*x^2*y^3 - 769764*x^2*y^2 - 1669218*x^2*y - 1214524*x^2 - 61.9525*x*y^6 - 3876*x*y^5 - 75440*x*y^4 - 643676*x*y^3 - 2570248*x*y^2 - 4473769*x*y - 2750044*x - 4.1241*y^7 - 333.6706*y^6 - 8419*y^5 - 99085*y^4 - 607023*y^3 - 1930062*y^2 - 2885924*y - 1593986;
I tried to solve for the x & y values using the command : SS = solve(eq1, eq2)
But, even after 6 hours also, it did not give any out put.

I tried to use even fsolve also for solving the eq1 & eq2 equations. But, because of not giving the initial guess properly, Matlab is not giving the correct solution for eq1 & eq2 equations.