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 18, 2011, at 5:47 AM, SherjilOzair wrote: > 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]) > c=a+b // or c=a.union(b) > print c > [1,2,3,4,5,6] > > and similar behavior for intersection, complement, contains > functions. > Feel free to suggest me more features. > > With a good polys class, we can also add conversion from set-builder > notation to list notation. > > I ask more experienced developers to tell me if there is any design > flaw in this. > I need the go-ahead to start coding this class. I think you haven't given too much information yet on how you plan on designing this. So far, I think that the basic ideas are good. Aaron Meurer > > Thanks, > Sherjil -- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en.
