|
SOLUTIONS
|
MATHEMATICA 内置符号
Permutations
Permutations[list]
给出 list 中元素的所有可能置换的一个列表.
Permutations[list, n]
给出最多包含 n 个元素的所有置换.
Permutations[list, {n}]
给出正好包含 n 个元素的所有置换.
更多信息更多信息
- n 个不同元素的列表总共有 n!个置换.
- 重复元素作为相同元素处理. »
- 对象 list 不需要有头 List.
- Permutations[list] 实际上等于 Permutations[list, {Length[list]}].
- Permutations[list, {nmin, nmax}] 给出从
到
之间元素的置换.
版本 1 的新功能 | 版本 6 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

