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

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : type/extended_numeric

type/extended_numeric

check for an object of type extended_numeric

 Calling Sequence type(x, extended_numeric)

Parameters

 x - any expression

Description

 • The type(x, extended_numeric) function returns true if x is of type numeric or real_infinity or is one of undefined, Float(undefined), or HFloat(undefined).
 Note:  infinity and undefined are of type extended_numeric but not of type numeric.
 Subtypes

Supertypes

 •

Examples

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

 See Also