check for an object of type nonreal - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/nonreal

type/nonreal - check for an object of type nonreal

Calling Sequence

type(x, nonreal)

type(x, nonreal(d))

Parameters

x

-

expression

d

-

numeric type

Description

• 

The type(x, nonreal) function returns true if x is a complex constant which is not of type extended_numeric, such that x (if present) and x are of type extended_numeric.

• 

The type(x, nonreal(d)) function returns true if x is of type nonreal and x (if present) and x are both of type d. It returns false if d is not a numeric type.

Examples

type5I,nonreal

true

(1)

type3,nonreal

false

(2)

type4.0.0I,nonreal

true

(3)

typex,nonreal

false

(4)

type12+3I,nonrealrational

true

(5)

typea+Ib,nonrealname

false

(6)

type1.+2.I,nonrealfloat

true

(7)

See Also

complex, constant, evalc, Im, Re, type, type/complexcons, type/embedded_real, type/extended_numeric, type/numeric


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