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

Online Help

All Products    Maple    MapleSim


hastype

test for a specified type

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

hastype(expr, t)

hastype(expr, t, 'exclude_container')

Parameters

expr

-

any expression

t

-

any Maple type

exclude_container

-

option

Description

• 

The hastype(expr, t) function returns true if expr  or any of its subexpressions is of type t.

• 

A subexpression of an expression is any of the expressions returned by the op command.

• 

Using the exclude_container option causes hastype to only look at subexpressions, and not the parent container object.

Thread Safety

• 

The hastype command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

(12)

(13)

(14)

See Also

has

hasfun

membertype

op

type

 


Download Help Document