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

Online Help

All Products    Maple    MapleSim


type/Range

expressions in a defined range

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type( expr, Range( a, b ) )

Parameters

expr

-

any expression

a, b

-

real numbers or a real infinity

Description

• 

The function call type(c, Range(a, b)) returns true if a<c and c<b. That is, the type Range( a, b ) represents the open interval (a,b) of the real line.

• 

The endpoints a and b of the interval must be real constants, or the left endpoint a may be of type neg_infinity and the right endpoint b may be of type pos_infinity.

• 

Note that neither a nor b is of type Range( a, b ).

Examples

> 

type⁡3&comma;Range⁡0&comma;4

true

(1)
> 

type⁡π3&comma;Range⁡π4&comma;π2

true

(2)
> 

type⁡I&comma;Range⁡−∞&comma;Float⁡∞

false

(3)
> 

type⁡5&comma;Range⁡0&comma;5

false

(4)

See Also

range

type

type/integer

type/neg_infinity

type/pos_infinity

type/range