check for a complex constant - Maple Help

Online Help

All Products    Maple    MapleSim


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

type/complexcons - check for a complex constant

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 infinity, -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/name, type/realcons


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