Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2405 by [email protected]: solve_poly_system can give ambiguous
results
http://code.google.com/p/sympy/issues/detail?id=2405
If you don't tell solve_poly_system the generators to use, it will pick its
own. I don't know how to disambiguate the output:
>>> from sympy.abc import *
>>> from sympy import *
>>> from sympy.solvers.polysys import solve_poly_system as so
>>> so([-2 + x + y, -5 + x - y]) # this gives (x, y)
[(7/2, -3/2)]
>>> so([-2 + x + a, -5 + x - a]) # this gives (x, a)
[(7/2, -3/2)]
If you give the symbols you know the output:
>>> so([-2 + x + a, -5 + x - a],a,x)
[(-3/2, 7/2)]
>>> so([-2 + x + a, -5 + x - a],x,a)
[(7/2, -3/2)]
Presently solve calls solve_poly_system without giving symbols so output
can be suspect.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.