COMBOSET - Subsets of a set S of size n
|
03-07-2017, 02:25 AM
(This post was last modified: 03-08-2017 11:54 PM by Han.)
Post: #1
|
|||
|
|||
COMBOSET - Subsets of a set S of size n
Usage: COMBOSET(set, size) where set is a set of objects, and size refers to the desired size of the subsets.
Example: COMBOSET({1, "b", (2,-1), [1,2], 3.14}, 3) { {1,"b",2-i}, {1,"b",[1,2]}, {1,"b",3.14}, {1,2-i,[1,2]}, {1,2-i,3.14}, {1,[1,2],3.14}, {"b",2-i,[1,2]}, {"b",2-i,3.14}, {"b",[1,2],3.14}, {2-i,[1,2],3.14} } Code: EXPORT COMBOSET(s,n) See also: http://www.hpmuseum.org/forum/thread-2845.html http://www.hpmuseum.org/forum/thread-7759.html Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)