type/realcons - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

type/realcons

check for a real constant

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, realcons)

Parameters

x

-

any expression

Description

• 

The call type(x, realcons) checks if x is a real constant. A real constant is infinity, -infinity, or an expression for which evalf returns a floating-point number.

Examples

type4,realcons

true

(1)

type2+I,realcons

false

(2)

type3.5,realcons

true

(3)

typelnπ,realcons

true

(4)

typesin2,realcons

true

(5)

type∞,realcons

true

(6)

typex2,realcons

false

(7)

See Also

evalf

type

type/complexcons

type/constant

type/infinity

type/numeric