Dear all,
If I have a list, how do I obtain the cardinality of the list, the
command Cardinality() doesn't seem to always work. For example, the
following code produces a set ComSet of sets of combinations.
Rows=3
RowVector=[2,3,2]
ComSet=[]
for j in range(Columns):
C=Combinations(range(Rows),RowVector[j])
ComSet.append(C.list())
show(ComSet)
However using Cardinality() on ComSet does not seem to work:
ComSet.Cardinality()
Basically I am looking for the mathematica command "Length".
Furthermore how would I be able to map that command on to the elements
of ComSet?
Many thanks,
Vince
--
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/sage-support
URL: http://www.sagemath.org