Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
combinat[subsets] - iterate over the power set of a set or list
Calling Sequence
subsets(L)
Parameters
L
-
set or list of elements
Description
The function subsets is an iterator for generating the power set of a set one set at a time. It returns a table with two entries: finished and .
The finished entry will be either true or false, depending on whether the end of the set has been reached. It is initially set to false.
The nextvalue entry is a procedure that traverses the power set. The result of a call to will be the next set in the power set. When the entire set has been traversed, nextvalue will set the value of finished to true.
If the input L is a set, the subsets are returned as sets. If the input is a list, the subsets are returned as lists. Otherwise the only difference is in the order in which the subsets are generated.
The command with(combinat,subsets) allows the use of the abbreviated form of this command.
Examples
See Also
combinat, combinat[choose], combinat[powerset]
Download Help Document