type/permlist - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : type/permlist

type/permlist

check for an permutation in list form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type( expr, 'permlist' )

Parameters

expr

-

anything; any Maple expression

Description

• 

The call type( expr, 'permlist' ) returns true if expr is a permutation of the integers {⁢1,2,...,n⁢}, where n=nops⁡expr, and returns false otherwise.

• 

A permutation of {⁢1,2,...,n⁢} is a list whose members are exactly these integer, in which each integer occurs exactly once.

Examples

> 

type⁡1,2,3,permlist

false

(1)
> 

type⁡1,2,3,permlist

true

(2)
> 

type⁡2,1,3,permlist

true

(3)
> 

type⁡2,1,2,permlist

false

(4)
> 

type⁡1,2,3,4,permlist

false

(5)

See Also

group

type

type,disjcyc

type,partition