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

Online Help

All Products    Maple    MapleSim


type/imaginary

check for an object of type imaginary

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, imaginary)

type(x, imaginary(d))

Parameters

x

-

any expression

d

-

any numeric type

Description

• 

The type(x, imaginary) function returns true if x is a one argument complex constant, where x is of type extended_numeric.

• 

The type(x, imaginary(d)) function returns true if  x is of type imaginary and x is type d.

  

type(x, imaginary(d)) returns false if d is not a numeric type.

Examples

type5I,imaginary

true

(1)

type2,imaginary

false

(2)

type2+5I,imaginary

false

(3)

typex,imaginary

false

(4)

type32I,imaginaryrational

true

(5)

typebI,imaginaryname

false

(6)

type2.I,imaginaryfloat

true

(7)

See Also

complex

Im

type

type/complexcons

type/constant

type/numeric