FUNCDEF

From iMath
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Syntax

@label@ { options } FUNCDEF * funcname(symbol|exlist) = expression

Implemented in iMath since version 2.2.0 or earlier.

Explanation

Define an equation that can be used to find the value of a user-defined function. The function must first have been declared with FUNCTION.

The starred form will suppress printing of the result.

Example

@f@ FUNCDEF f(x) = 3 x^2 + 2 x + 1 tells iMath how to find the value of f for a given value of x.

See also

{{{4}}}

Special notes

When you use simplification type expand on a function, it will be replaced by the definition given with FUNCDEF. If you do not want this, simply define the value of your function in a normal equation with EQDEF. Then you can replace your function with its definition by substitution.