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

type/numeric

check for an object of type numeric

 Calling Sequence type(x, numeric)

Parameters

 x - any expression

Description

 • The type(x, numeric) function returns true if x is an integer, fraction, or finite floating-point number.

Subtypes

 •
 Supertypes

Examples

 > $\mathrm{type}\left(1,\mathrm{numeric}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\frac{1}{2},\mathrm{numeric}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(1.5,\mathrm{numeric}\right)$
 ${\mathrm{true}}$ (3)
 > $\mathrm{type}\left(\mathrm{Name},\mathrm{numeric}\right)$
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left(\frac{a}{b},\mathrm{numeric}\right)$
 ${\mathrm{false}}$ (5)
 > $\mathrm{type}\left(\mathrm{∞},\mathrm{numeric}\right)$
 ${\mathrm{false}}$ (6)
 > $\mathrm{type}\left(\mathrm{∞},\mathrm{extended_numeric}\right)$
 ${\mathrm{true}}$ (7)
 > $\mathrm{type}\left(\mathrm{Float}\left(\mathrm{undefined}\right),\mathrm{numeric}\right)$
 ${\mathrm{false}}$ (8)
 > $\mathrm{type}\left(\mathrm{Float}\left(\mathrm{undefined}\right),\mathrm{extended_numeric}\right)$
 ${\mathrm{true}}$ (9)