Function: type/real - check for a real value

Calling Sequence:

type(n, real);

Parameters:

n - any expression

Description:

The call type(n, real) checks to see if n is real; if so, it returns true, otherwise it returns false.

An expression is of type real if it is of type realcons but not the constant 'infinity'.

This type is part of the math package and automatically initialized when this package is loaded.

Examples:

> with(math):

> type(1, real);

[Maple Math]

> type(ln(2), real);

[Maple Math]

> type(infinity, realcons);

[Maple Math]

> type(infinity, real);

[Maple Math]

> type(ln(-2), real);

[Maple Math]

See Also:

type , type/irrational , type/cmplx .

Version History:

Version 1.0 - 1997

Version 2.0 - January 06, 1999