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);
> type(sqrt(x), function);
> type(sqrt(x), mathfn);
See Also:
type , type/function , arithmetical types .
Version History:
Version 1.0 as of December 30, 1997