DOM_FUNC_ENV

Data type of function environments

Description

DOM_FUNC_ENV is the data type of function environments.

MuPAD® uses function environments (domain type DOM_FUNC_ENV) to integrate functions into the system. All MuPAD library functions and most kernel functions are implemented as function environments.

A function environment stores special function attributes (slots) in an internal table. When an overloadable system function, such as diff, expand, or float, encounters an object of type DOM_FUNC_ENV, it searches the function environment for a corresponding slot.

Operands

A function environment consists of three operands. The first operand is a procedure that computes the return value of a function call. The second operand is a procedure for printing a symbolic function call on the screen. The third operand is a table that specifies how the system functions handle symbolic function calls.

Element Creation

funcenv and fp::unapply (or its equivalent -->) create function environments of type DOM_FUNC_ENV.

See Also

MuPAD Domains

MuPAD Functions

Was this topic helpful?