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

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=nopsexpr, 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

type1,2,3,permlist

false

(1)

type1,2,3,permlist

true

(2)

type2,1,3,permlist

true

(3)

type2,1,2,permlist

false

(4)

type1,2,3,4,permlist

false

(5)

See Also

group

type

type,disjcyc

type,partition