Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
combinat[choose] - construct the combinations of a list
Calling Sequence
choose(n)
choose(n, m)
Parameters
n
-
list or set of objects or an non-negative integer
m
(optional) non-negative integer
Description
If n is a list/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.
The command with(combinat,choose) allows the use of the abbreviated form of this command.
Examples
See Also
binomial, combinat[numbcomb], combinat[permute], combine
Download Help Document