Numeric Algorithms Library

MuPAD® notebooks will be removed in a future release. 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.


Use only in the MuPAD Notebook Interface. This functionality does not run in MATLAB.

The numeric package provides algorithms from various areas of numerical mathematics.

The package functions are called using the package name numeric and the name of the function. E.g., use

numeric::solve(equations, unknowns)

to call the numerical solver. This mechanism avoids naming conflicts with other library functions. If this is found to be inconvenient, the routines of the numeric package may be exported via use. E.g., after calling

use(numeric, fsolve)

the function numeric::fsolve may be called directly:

fsolve(equations, unknowns)

All routines of the numeric package are exported simultaneously by


Note, however, that presently naming conflicts with the functions indets, int, linsolve, rationalize, solve and sort of the standard library exist. The corresponding functions of the numeric package are not exported. Further, if the identifier fsolve, say, already has a value, then use returns a warning and does not export numeric::fsolve. The value of the identifier fsolve must be deleted before it can be exported successfully from the numeric package.