solve() for unsolveable system returns a nonempty dict

27 views
Skip to first unread message

Carsten Knoll

unread,
Mar 8, 2014, 12:31:21 PM3/8/14
to sy...@googlegroups.com
Until today I thought, if solve returns a nonempty dict, then there is a
(complete) solution to the provided system.


However this is apparently not the case:

>>> solve([y, x], x)
{x:0}


Moreover, this behavior seems not to be consistent


>>> solve([x, y], y)
[]


(results from SymPy 0.7.4.1 on live.sympy.org)


Am I on a wrong track or is that a bug?

Best regards,
Carsten

Julien Rioux

unread,
Mar 17, 2014, 6:54:12 AM3/17/14
to sy...@googlegroups.com

If x and/or y is defined as symbols with nonzero=True, then this is a bug. Please open an issue at https://github.com/sympy/sympy/issues?state=open

Thanks,
cheers,
Julien

Aaron Meurer

unread,
Apr 3, 2014, 9:21:31 PM4/3/14
to sy...@googlegroups.com
The output type of solve is not very consistent. I recommend always using dict=True with solve. 

Aaron Meurer


--
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 sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
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/7100819d-05ea-4e3d-b29e-04016c4e1d7e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages