construct the combinations of a list
list or set of objects or an non-negative integer
(optional) non-negative integer
If n is a list or set, then choose returns a list/set of the combinations of the list elements. If n is a non-negative integer, it is interpreted in the same way as a list of the first n integers.
If m is given, then only combinations of size m are generated; otherwise, all combinations are generated, including the empty combination, that is, the power set is generated and converted to a sorted list. Note that duplicates in the list n are taken into account.
To calculate the number of combinations of n taken m at a time, use combinat[numbcomb].
The command with(combinat,choose) allows the use of the abbreviated form of this command.
Download Help Document
What kind of issue would you like to report? (Optional)