[sympy] Sets in sympy

2011-03-18 Thread SherjilOzair
The Set class of sympy is not complete. I plan to add a full FiniteSet class functionality which will inherit the Set class, we can also have an InfiniteSet abstract class later which Interval and Union can inherit. A FiniteSet would behave something like this, a=Set([1,2,3,4,5]) b=Set([4,5,6,7])

Re: [sympy] Sets in sympy

2011-03-18 Thread Christophe BAL
Hello. That's a good idea but you will have to explain what you mean by infinite sets. An easy task is to produce something for the reunions of intervals which can contain {a} = [a, a]. I've made an incomplete code so as to work with intervals (I'm not sure that all the classes work well). Feel

Re: [sympy] Sets in sympy

2011-03-18 Thread Aaron S. Meurer
Hi. This sounds like it could be a useful project, especially the support for infinite sets. For example, we could add support to solve() to return infinite solutions (like sin(x) = 0, or non-zero dimensional polynomial systems). We already have some sets implemented (intervals). On Mar