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.

permutations([a, c]);

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

permutations([a,b,c]);

Calculate

permutations

permutations ([a, a]);

permutations ([a, c,...

Calculate

permutations

lenght(permutations([...

Calculate

permutations

permutations([a, c]);

Calculate

permutations

permutations ([1, 2]);

permutations ([a, a,...

Calculate

permutations

permutations ([1, 2]);

combination ([1, 2, ...

Calculate

permutations-rest

a:[1,2,3];

b:permutations(a);

rest(b);

Calculate

permutations

a:[1,2,3];

b:permutations(a);

Calculate

permutations-powerset

permutations ([1, 2]);

powerset ({1, 2, 3},...

Calculate

permutations

permutations ([1, 2,3...

Calculate