Status: Accepted Owner: [email protected] Labels: Type-Enhancement Priority-Medium
New issue 2424 by [email protected]: 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 [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.
