Class mpoly (multivariate polynomial)

Multivariate polynomial class with automatic differentiation functionality
4 Downloads
Updated 27 Jan 2026

View License

Class mpoly represents a numeric array (of any nonempty size, any number of dimensions) as a polynomial function (any degree) of a set of independent parameters (any number of parameters), or as a truncated polynomial approximation (Taylor series). The class encapsulates the function value and its series coefficients.
Most standard array operations (+, -, *, /, cat, transpose, etc.) are implemented in mpoly to automatically calculate series coefficients for the result, effectively implementing automatic differentiation. Multivariate operations can be applied to mixed mpoly and numeric arguments, with numeric values being interpreted as constants.

Cite As

Kenneth Johnson (2026). Class mpoly (multivariate polynomial) (https://in.mathworks.com/matlabcentral/fileexchange/182185-class-mpoly-multivariate-polynomial), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired by: Class DAA, "Derivative-Augmented Array"

Version Published Release Notes
1.1.2

Corrected upload files from last version.

1.1.1

Added global asgn function, modified test_mpoly.

1.1.0

code revisions
new files: besselj.m, test_besselj.m, mpoly_tutorial.mlx
Included link to algorithm document reference in mpoly.m.

1.0.0