Function: type/mathfn - checks for a mathematical function

Calling Sequence:

type(fn, mathfn);

Parameters:

fn - any algebraic expression

Description:

The call type(fn, mathfn) checks whether fn is
- of type function,
- of type sqrt,
- of type `+`,
- of type `*`, or
- of type `^`;
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(ln(x), mathfn);

[Maple Math]

> type(sqrt(x), function);

[Maple Math]

> type(sqrt(x), mathfn);

[Maple Math]

See Also:

type , type/function , arithmetical types .

Version History:

Version 1.0 as of December 30, 1997