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

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

> 

type⁡1,name

false

(1)
> 

type⁡12,name

false

(2)
> 

type⁡0.5,name

false

(3)
> 

type⁡String,name

false

(4)
> 

type⁡Name,name

true

(5)
> 

type⁡ab,name

true

(6)
> 

type⁡ab,name

false

(7)
> 

type⁡a,name⁡integer

false

(8)
> 

a≔3

a≔3

(9)
> 

type⁡a,name⁡integer

true

(10)

See Also

name

type

type/atomic

type/indexed

type/string

type/symbol