Comment #4 on issue 1646 by jorn.baayen: Solving inequalities
http://code.google.com/p/sympy/issues/detail?id=1646
Oops, sorry about that bug ...
The problem with a Union class supporting infinite unions that would behave
like a
container is that it becomes almost too easy to get stuck in an infinite
loop. A
"cosmetic" Union class that would behave just like a list of intervals
would of
course be another possibility.
But if using such Unions they would have to be the default return type for
solve(),
because of the possibility of interval results (even in the equation case,
see my
previous comment).
My reason for intersect() returning single values instead of singletons was
for ease
of use when using lists, but I guess returning a singleton is indeed the
behaviour
most people would expect -- I have changed this in the attached patch, and
also added
the EmptySet class as you suggested.
Attachments:
half-open-intervals-2.patch 5.0 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---