permutations function
All the orderings of a list.
How to write it
permutations(list)
- list
- The list. Takes a list.
Examples
permutations([1, 2, 3])In the solver,
Open in the solverpermutations([1, 2, 3])gives[[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]].
Related functions
- quaternion_conjugate
The conjugate of a quaternion.
- permutation_sign
The sign of a permutation: 1 when it is even, -1 when odd.
- quaternion_multiply
The product of two quaternions.
- permutation_product
The product of two permutations.
- quaternion_norm
The norm of a quaternion.
- permutation_power
A permutation to a whole power.