from sage 3.4

mset=[1,1,2]
number_of_tuples(mset,2)
4

it doesn't count multiplicities

but

mset=[1,1,2]
tuples(mset,2)
[[1, 1], [1, 1], [2, 1], [1, 1], [1, 1], [2, 1], [1, 2], [1, 2], [2, 2]]

does

is this what we want?

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to