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

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

> 

type⁡4,realcons

true

(1)
> 

type⁡2+I,realcons

false

(2)
> 

type⁡3.5,realcons

true

(3)
> 

type⁡ln⁡π,realcons

true

(4)
> 

type⁡sin⁡2,realcons

true

(5)
> 

type⁡undefined,realcons

false

(6)
> 

type⁡∞,realcons

true

(7)
> 

type⁡x2,realcons

false

(8)

See Also

evalf

type

type/complexcons

type/constant

type/infinity

type/numeric