Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Permutations Calculator

Permutations

Function: permutations (<a>) Returns a set of all distinct permutations of the members of the list or set <a>. Each permutation is a list, not a set.

When <a> is a list, duplicate members of <a> are included in the permutations.

permutations complains if <a> is not a literal list or set.

See also random_permutation.

Examples:

          (%i1) permutations ([a, a]);
          (%o1)                       {[a, a]}
          (%i2) permutations ([a, a, b]);
          (%o2)           {[a, a, b], [a, b, a], [b, a, a]}

(%o1)                                true
(%i2) 

Permutations Example

Related Examples

permutations-powerset

permutations ([1, 2]);

powerset ({1, 2, 3});

Calculate

permutations

permutations ([2, 1]^2);

Calculate

permutations

listperms: permutatio...

listperms[5];

Calculate

permutations

listperms: permutatio...

Calculate

permutations

lenght(permutations([...

Calculate

permutations

? permutations;

Calculate

permutations

permutations ([10, a]);

permutations ([10, a...

Calculate

permutations

lenght(permutations([...

Calculate

permutations

l:[1,2,3,4,5,6,7,8,9,...

permutations(l);

Calculate

permutations

permutations ([10, a]);

permutations ([10, a...

Calculate