Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我们有一个数组 x:=[a,b,c]。它所有没有重复的可能排列都是[a,c,b], [b,c,a], [b,a,c], [c,a,b], [c,b,a]. 如何创建一些向量来保存初始 x 及其所有排列而不在枫树中重复?
[a,c,b], [b,c,a], [b,a,c], [c,a,b], [c,b,a]
尝试组合库。
with(combinat) permute([a,c,b]);
组合 - permute,maplesoft.com