Hi all,
I have this equation, which is Vieta's formula and is polynomial.
SymPy code: didn't work... just hang there
from sympy.abc import x, y, z, a, b, c
from sympy import solve
solve([x+y+z-a, x*y+y*z+x*z-b, x*y*z-c], [x, y, z])
Mathematica worked.
Solve[{x + y + z == a, x y + y z + x z == b, x y z == c}, {x, y, z}]
I do know the answer of this equation, but I was wondering... this seems to be a question that should work in sympy because it does not appear too difficult to me - only polynomials. Any thoughts?
Shawn
from sympy.abc import x, y, z, a, b, c
from sympy import solve, solve_poly_system
solve_poly_system([x+y+z-a, x*y+y*z+x*z-b, x*y*z-c], [x, y, z])