extended_rational - 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/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

type1,rational

true

(1)

type12,rational

true

(2)

type0.5,rational

false

(3)

typeName,rational

false

(4)

typeab,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

 


Download Help Document