Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

DOM_FUNC_ENV

Data type of function environments

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

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?