Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Sets

New issue 3159 by mrock...@gmail.com: Intersection class for sets
http://code.google.com/p/sympy/issues/detail?id=3159

There are a number of classes of sets including Intervals, FiniteSets, Unions, EmptySet, and their cartesian products.

The Set.intersect method is very important for many set operations. It effectively serves as the basic operation. Most set magic works because we have good solutions for intersect

Currently each class contains logic on how to interact with as many other classes as possible. This results in very complex code that is challenging to extend. When you want to extend the system by adding a new class you need to go in and change many of the other classes.

A good solution to these problems would be a central Intersection class where these rules can be collected together. This is the current solution with Union. Intersection would also serve as the result if no known solution exists to intersect two particular sets.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to