type/nonreal - Maple Programming 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

Parameters

Description

Examples

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 of the form a+Ib, where b <> 0 and a (if present) and b are of type extended_numeric.

• 

The type(x, nonreal(d)) function returns true if d is a numeric type, and x is of the form a+Ib, where b <> 0 and a (if present) and b are of type d.

Examples

type5I&comma;nonreal

true

(1)

type3&comma;nonreal

false

(2)

type4.0.0I&comma;nonreal

true

(3)

typex&comma;nonreal

false

(4)

type12&plus;3I&comma;nonrealrational

true

(5)

typea&plus;Ib&comma;nonrealname

false

(6)

type1.&plus;2.I&comma;nonrealfloat

true

(7)

See Also

complex

evalc

Im

Re

type

type/complexcons

type/constant

type/embedded_real

type/extended_numeric

type/numeric