type/extended_rational - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Home : Support : Online Help : type/extended_rational

type/extended_rational

check for an object of type extended_rational

 Calling Sequence type(x, extended_rational)

Parameters

 x - any expression

Description

 • The type(x, extended_rational) function returns true if x is a rational, infinity, -infinity, or undefined. Equivalently, x is of type extended_rational if it is of type extended_numeric and not of type float.

Subtypes

 •

Supertypes

 •

Examples

 > $\mathrm{type}\left(1,\mathrm{extended_rational}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\frac{1}{2},\mathrm{extended_rational}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(0.5,\mathrm{extended_rational}\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{type}\left(\mathrm{Name},\mathrm{extended_rational}\right)$
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left(\frac{a}{b},\mathrm{extended_rational}\right)$
 ${\mathrm{false}}$ (5)
 > $\mathrm{type}\left(\mathrm{\infty },\mathrm{extended_rational}\right)$
 ${\mathrm{true}}$ (6)