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

Online Help

All Products    Maple    MapleSim


type/rational

check for an object of type rational

 

Calling Sequence

Parameters

Description

Subtypes

Supertypes

Examples

Calling Sequence

type(x, rational)

Parameters

x

-

any expression

Description

• 

The type(x, rational) function returns true if x is an integer or fraction.  Otherwise, it returns false.

Subtypes

• 

type/fraction, type/integer

Supertypes

• 

type/extended_rational, type/numeric

Examples

> 

type⁡1,rational

true

(1)
> 

type⁡12,rational

true

(2)
> 

type⁡0.5,rational

false

(3)
> 

type⁡Name,rational

false

(4)
> 

type⁡ab,rational

false

(5)
> 

type⁡∞,extended_rational

true

(6)

See Also

convert/rational

infinity

type

type/extended_rational

type/fraction

type/infinity

type/integer

type/numeric

type/undefined

undefined