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