realcons - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


type/realcons

check for a real constant

 

Calling Sequence

Parameters

Description

Subtypes

Supertypes

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.

Subtypes

• 

type/numeric, type/real_infinity

Supertypes

• 

type/algebraic

Examples

type4,realcons

true

(1)

type2+I,realcons

false

(2)

type3.5,realcons

true

(3)

typelnπ,realcons

true

(4)

typesin2,realcons

true

(5)

typeundefined,realcons

false

(6)

type,realcons

true

(7)

typex2,realcons

false

(8)

See Also

evalf

type

type/complexcons

type/constant

type/infinity

type/numeric