test whether an expression is of the given type - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : TypeTools : TypeTools/Type

TypeTools[Type] - test whether an expression is of the given type

Calling Sequence

Type(e, t)

Parameters

e

-

any expression

t

-

type

Description

• 

The Type command tests whether the expression e is of the type t. This command is identical to the top-level type command. For information about this command, see type.

Examples

TypeTools[Type]7,'integer'

true

(1)

TypeTools[Type]23,'integer'

false

(2)

TypeTools[Type]2.3,5.6,8.9,'listfloat'

true

(3)

TypeTools[Type]2x7+3x+1,'polynominteger'

true

(4)

See Also

type, TypeTools


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam