I am working on a problem with a colleague who uses Mathematica v.10.2 while I have v.11.0 Student Edition. We are solving the exact same equations but get two slightly different results. Why would this be the case? The equations are below
eq1 = 1/8 (3/b + 1/(4 + b) + (4 + a)/(4 + 2 a + (4 + a) b) + (2 (2 + a))/(
2 b + a (2 + b)) + (4 + a)/(4 (5 + b) + a (6 + b))) == 1
eq2 = 1/(2 + a) +
1/2 (4/(8 a + 6 a^2 + a^3) + 1/((4 + a) (4 + 2 a + (4 + a) b)) +
2/((2 + a) (2 b + a (2 + b))) +
1/((4 + a) (4 (5 + b) + a (6 + b)))) == 1
We are looking for a particular solution (real, positive, less than 1), but for arguments sake we have solved it with NDSolve without restricting the solution. The last solution in the list is the one we want.
NSolve[{eq1,eq2},{a,b}]
Solution with v.11.0 Student Edition:
{a -> 0.454152, b -> 0.603878}
Solution with v.10.2:
{a -> 0.454231 + 0.0000159456 I, b -> 0.604194 + 4.76104*10^{-7} I}
Why do we not agree on this result?
FindRoot[{eq1, eq2}, {{a, 1}, {b, 1}}]
yields{a -> 0.454152, b -> 0.603878}
, and does so two orders of magnitude faster thanNSolve
. $\endgroup$