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

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+Ib where a and b are floating-point numbers.

Examples

type4,complexcons

true

(1)

type2+I,complexcons

true

(2)

type3.5,complexcons

true

(3)

typelnπ+I,complexcons

true

(4)

type,complexcons

true

(5)

typeg2,complexcons

false

(6)

typeFAIL,complexcons

false

(7)

typex2,complexcons

false

(8)

See Also

complex

evalf

type

type/complex

type/constant

type/infinity

type/name

type/realcons