If you want the fully evaluated FiniteSet of pairs then call FiniteSeton
the ProductSet. This works because ProductSets iterate through all of the
elements.
>>> s = FiniteSet(1, 2)
>>> t = FiniteSet(2, 3)
>>> p = ProductSet(s, t)
>>> FiniteSet(p)
{(1, 2), (1, 3), (2, 2), (2, 3)}
On Wed, Mar 26, 2014 at 12:13 PM, Aaron Meurer <[email protected]> wrote:
> If the set itself is unevaluated as a product, then it should print that
> way.
>
> The main concern with evaluating such sets automatically would be that
> they can get quite large compared to the size of the original sets.
>
> Aaron Meurer
>
> On Wed, Mar 26, 2014 at 9:01 AM, Amit Saha <[email protected]> wrote:
> > On Wed, Mar 26, 2014 at 11:59 PM, Sergey Kirpichev <[email protected]>
> wrote:
> >>
> >> On Wednesday, March 26, 2014 5:18:41 PM UTC+4, Amit Saha wrote:
> >>>
> >>> IMO, a product set is a set (at least Wikipedia tells me so). So,
> >>> shouldn't it rather be the following?
> >>>
> >>> {(1,2), (1,3), (2,2), (2,3)}
> >>
> >>
> >> 1) It *is* a set:
> >> In [8]: isinstance(p, Set)
> >> Out[8]: True
> >
> > Yes, I realized that. My comment is regarding how it is presented to the
> user.
> >
> >
> >
> > --
> > http://echorand.me
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/sympy.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CANODV3kUJ%2B_a_tOCpTtRiYLqfoXC6z274aqMYEG5SuypRD-cVQ%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAKgW%3D6JGdy9sHe97bkh8aW6-Co3xkUADnTbTspprW31ZLoiydw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAJ8oX-GJvshewpYjnbPJV8eELBfZrCV%3DFae7uvDWQXJVvpZgAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.