type/mathfunc - Maple Programming Help

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/mathfunc

type/mathfunc

check for mathematical functions

 Calling Sequence type(f, mathfunc)

Parameters

 f - name

Description

 • This procedure checks to see if the given name, f, is the name of a mathematical function known to Maple.
 • The definition of a mathematical function, in this context, is heuristic but reasonably effective: A name, $g$, is considered to represent a mathematical function if either $g$ has been defined as an operator or there exists a routine called $\mathrm{evalf/g}$.  (See evalf for more details about numerical evaluation of functions and expressions.)
 • The following top-level mathematical functions are known to type/mathfunc:

Examples

 > $\mathrm{type}\left(h,\mathrm{mathfunc}\right)$
 ${\mathrm{false}}$ (1)
 > evalf/h := proc(x) evalf(x^2); end:
 > $\mathrm{type}\left(h,\mathrm{mathfunc}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(x→{x}^{2},\mathrm{mathfunc}\right)$
 ${\mathrm{true}}$ (3)