type/imaginary - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

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)

type3I2,imaginaryrational

true

(5)

typebI,imaginaryname

false

(6)

type2.I,imaginaryfloat

true

(7)

See Also

complex

constant

Im

type

type/complexcons

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