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

Online Help

All Products    Maple    MapleSim


type/set

check for a set

 

Calling Sequence

Parameters

Description

Subtypes

Supertypes

Examples

Calling Sequence

type(expr, set)

type(expr, set(K))

Parameters

expr

-

any expression

K

-

type name

Description

• 

In the first calling sequence, the type command checks if expr is a valid Maple set. It returns true if expr is a set and false otherwise.

• 

See the set help page for a description of the set datatypes.

• 

In the second calling sequence, where K is a specified type name, the type command checks whether expr is a set whose entries are of type K.  That is, type(expr, set(K)) returns true if type(expr, set) is true and type(x, K) is true for each entry x of expr.

• 

See the type help page for a description of valid types in Maple.

Subtypes

• 

type/equationset

• 

type/nonemptyset

Supertypes

• 

type/sequential

Examples

> 

S1≔1,2,32

S1≔1,2,32

(1)
> 

type⁡S1,set

true

(2)
> 

type⁡S1,set⁡rational

true

(3)
> 

type⁡S1,set⁡integer

false

(4)
> 

S2≔x+3,x4−1,x2

S2≔x2,x+3,x4−1

(5)
> 

type⁡S2,set

true

(6)
> 

type⁡S2,set⁡polynom⁡integer,x

true

(7)

See Also

list

set

type

type/list

type/nonemptyset

type/sequential