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

Online Help

All Products    Maple    MapleSim


type/name

check for an object of type name

 

Calling Sequence

Parameters

Description

Supertypes

Examples

Calling Sequence

type(x, name)

type(x, name(t))

Parameters

x

-

expression

t

-

type

Description

• 

The call type(x, 'name') checks if x is of type name. It returns true if x is of type name. Otherwise, it returns false.

• 

An object is of type name if it is a symbol, or if it is of type indexed and its root is of type name (that is, it is a recursive type).

• 

If the parameter t is included, it checks that x is assigned something of that type.

Supertypes

• 

type/algebraic

Examples

type1,name

false

(1)

type12,name

false

(2)

type0.5,name

false

(3)

typeString,name

false

(4)

typeName,name

true

(5)

typeab,name

true

(6)

typeab,name

false

(7)

typea,nameinteger

false

(8)

a3

a3

(9)

typea,nameinteger

true

(10)

See Also

name

type

type/atomic

type/indexed

type/string

type/symbol