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

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

> 

type⁡5⁢I,imaginary

true

(1)
> 

type⁡2,imaginary

false

(2)
> 

type⁡2+5⁢I,imaginary

false

(3)
> 

type⁡x,imaginary

false

(4)
> 

type⁡32⁢I,imaginary⁡rational

true

(5)
> 

type⁡b⁢I,imaginary⁡name

false

(6)
> 

type⁡2.⁢I,imaginary⁡float

true

(7)

See Also

complex

Im

type

type/complexcons

type/constant

type/numeric