Comment #5 on issue 3560 by [email protected]: solve() is a giant mess
http://code.google.com/p/sympy/issues/detail?id=3560

"What's wrong with the dict output?"

Most arguments again dict output are detailed in the discussion linked above.


Personally, I would sum up my own arguments as follows :

* correct mathematical type is set, and unless major drawback, it's always better to follow closely mathematical conventions. Using dict may lead to surprising results, like solve(x**2 = 1, x) != solve(y**2 = 1, y). Mathematically, it doesn't make sense IMO.

* this is probably mostly personal, but most of the time, when I solve equations, I use only one variable, so, in practice, using sets leads to more natural and readable code, like `for sol in solutions`, or `if 0 in solutions` (and not `for sol in solutions.values()`...).

* if one expands sympy solving abilities, I'm afraid some fundamental restrictions of dict may appear. For example, solve(x**2 +y**2 < 1, (x, y)) should be the disk of radius 1 and center (0,0) ; I don't see how to represent it using a dict.



--
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.

Reply via email to