Status: Accepted Owner: mrock...@gmail.com Labels: Type-Enhancement Priority-Medium
New issue 2424 by mrock...@gmail.com: Cartesian Product Set http://code.google.com/p/sympy/issues/detail?id=2424 Adding Cartesian Products of sets Example
square = ProductSet( Interval(0,1) , Interval(0,1) )
or
square = Interval(0,1) * Interval(0,1)
(1,1) in square
True
coin = FiniteSet('H','T') for pair in coin * coin: print pair
(H, H) (H, T) (T, H) (T, H) Can also mix sets
p = coin * square ('H', 1,1) in p
True This depends on issue 2419 on discrete/finite sets http://code.google.com/p/sympy/issues/detail?id=2419 -- 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.