Function: type/elemental

Calling Sequence:

type(n, elemental);

Parameters:

n - any algebraic expression

Description:

The call type(n, elemental) checks whether eval(n) is of type realcons, type name, or type string; if so, it returns true, and false otherwise.

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

Examples:

> with(math):

> type(sqrt(2), elemental);

[Maple Math]

> type(1/x, elemental);

[Maple Math]

> ### WARNING: semantics of type `string` have changed
type(`string`, elemental);

[Maple Math]

> type(sin, elemental);

[Maple Math]

> type(table([1, 2, 3]), elemental);

[Maple Math]

See Also:

type .

Version History:

Version 1.00 - December 30, 1997

Version 1.01 - June 08, 1998