Hi,

You might try the polynomial module solve support. See,

http://docs.sympy.org/latest/modules/polys/basics.html#solving-equations

Cheers,

Tim.

On 24 Nov 2014, at 20:26, Yuxiang Wang wrote:

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

--
You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/8e42eaf3-da4e-47ff-b98b-df46d1fcf2d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/1F84D1FA-2FAB-4252-AE05-A9BD262EDD8A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to