Permutations

Returns the permutations of a set.

Syntax

 Range)
permutations(Integer)

Description

Given a list, vector or range with the elements of a set, returns a list with all the permutations given in lexicographical order.

combinatorics.permutations.calc.png

Given an integer nLaTeXn, returns the number of permutations of a set with nLaTeXn elements, that is n!.

combinatorics.permutations2.calc.png