The output type of solve is not very consistent. I recommend always using
dict=True with solve.

Aaron Meurer


On Mon, Mar 17, 2014 at 5:54 AM, Julien Rioux <[email protected]>wrote:

> On Saturday, 8 March 2014 18:31:21 UTC+1, Carsten Knoll wrote:
>>
>> 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?
>>
>>
> 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
>
> --
> 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/7100819d-05ea-4e3d-b29e-04016c4e1d7e%40googlegroups.com<https://groups.google.com/d/msgid/sympy/7100819d-05ea-4e3d-b29e-04016c4e1d7e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAKgW%3D6%2BF5aV7jqXss%3Doo-BbcZJ%2BZJTjSLroaZ6%3DTiPnhEXLSfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to