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

Online Help

All Products    Maple    MapleSim


type/complexcons

check for a complex constant

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, complexcons)

Parameters

x

-

any expression

Description

• 

The call type(x, complexcons) checks if x is a complex constant. A complex constant is either of type infinity, or an expression (with no indeterminates of type name) for which evalf returns a number of the form a+I⁢b where a and b are floating-point numbers.

Examples

> 

type⁡4,complexcons

true

(1)
> 

type⁡2+I,complexcons

true

(2)
> 

type⁡3.5,complexcons

true

(3)
> 

type⁡ln⁡π+I,complexcons

true

(4)
> 

type⁡∞,complexcons

true

(5)
> 

type⁡g⁡2,complexcons

false

(6)
> 

type⁡FAIL,complexcons

false

(7)
> 

type⁡x2,complexcons

false

(8)

See Also

complex

evalf

type

type/complex

type/constant

type/infinity

type/name

type/realcons