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

Online Help

All Products    Maple    MapleSim


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+I⁢b, 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+I⁢b, where b <> 0 and a (if present) and b are of type d.

Examples

> 

type⁡5⁢I&comma;nonreal

true

(1)
> 

type⁡3&comma;nonreal

false

(2)
> 

type⁡4.−0.⁢I&comma;nonreal

true

(3)
> 

type⁡x&comma;nonreal

false

(4)
> 

type⁡12+3⁢I&comma;nonreal⁡rational

true

(5)
> 

type⁡a+I⁢b&comma;nonreal⁡name

false

(6)
> 

type⁡1.+2.⁢I&comma;nonreal⁡float

true

(7)

See Also

complex

evalc

Im

Re

type

type/complexcons

type/constant

type/embedded_real

type/extended_numeric

type/numeric