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

2) Yes, maybe for FiniteSet - we should evaluate ProductSet.
 

> Again going by the same idea, I also feel, the len() function should 
> return the cardinatlity and not raise a TypeError: 
>

Maybe.

-- 
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/781a6ecb-ebcf-4f2b-9221-4ef4e9b96a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to