Polynomial Toolbox: polyBox Version 2.1

Polanomial approximation, polynomials as admissible functions, a comprehensive tutorial.
2.8K Downloads
Updated 11 Jul 2013

View License

polyBox: version V2.1

July 2013

Introduction
------------
This toolbox extends the capabilities of polynomials as implemented in MATLAB. The following functions are made available:

polyadd: polynomial addition with covariance propagation.

polymult: polynomial multiplication with covariance propagation polyfitcov: extends polyfit to return the covariance of the coefficients.

polytrans: transforms the shifted polynomials coefficients to unshifted coefficients.

polyvander: generates a vandermonde matrix exachtly as used in polyfit and polyval, including the shift and scaling if desired. This function is used in may of the other scripts to extend the capabilities of MATLAB with respect to polynomials.

polydiffcfs: Generate the matrix M which performs differentiation on the coefficients of a polynomial. This function is used internally to generate constrained polynomials.

polyconstrained: Generate a set of constrained polynomials, i.e., a set of polynomials which fulfil a set of generic constraints of the form D^(n) Y(a) = b. Such constraints are common in initial value and boundary value problems. Usable as admisssible functions in a discrete implementation of a Rayleigh-Ritz method.

polydifflocal: Generate a matrix D which performs local polynomial differentiation.

polyfitconstrained: This functions performs a least squares approximation of a set of data points x, y, while fulfilling predefined constraints. This type of problem occurs in many measurement problems (inverse problems), e.g., the measurement of the deflection of structures.

Origially, the toolbox started as a tutorial on the implementation of polynomials in MATLAB. The comprehensive tutorial, with derivation of all the equations behing the implemation, is still part of the toolbox. However, the number of functions added has grown to an extend that it has become a toolbox in its own right.

Organization
------------
The library is organized as follows:

1) Tutorial: The directory containing the introductory tutorial on polynomials and their implementation in MATLAB
2) Advanced:
- ConstrainedApproximation: Examples of constrained fitting.
- ConstrainedPolynomials: Examples of constrained polynomials.

3) polybox: the source code for the toolbox.

Changes
-------

Version 2.1

1) The theory, i.e. all derivations, reuired for the generation of constrained polynomials and for the computation of least squares constrained polynomial approximation have been added.

2) Some minor variable renaming has been performed in polyconstrained.m to make the code more consistent with the documentation. This has no effect on the functionality.

Cite As

Matthew Harker, Paul O'Leary, (2024). Polynomial Toolbox: polyBox Version 2.1 (https://www.mathworks.com/matlabcentral/fileexchange/41658-polynomial-toolbox-polybox-version-2-1), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Polynomials in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

polyBoxV2-1/Advanced/ConstrainedApproximation/html/

polyBoxV2-1/Advanced/ConstrainedPolynomials/html/

polyBoxV2-1/Tutorial/html/

Version Published Release Notes
1.5.0.0

The theory behing the constrained polynomials and the least squares polynomial approximation has been added.

1.4.0.0

Constrained polynomials as admissible functions have been added, as has constrained approximation. This extends the use of the toolbox to inverse problems. Consequently, the toolbox has been rearranged so that it is now more than just a tutorial.

1.3.0.0

1) Many typing errors were corrected
2) Some minor modifications made to the function polyvander.m to make it more generally usable in initial value problems.
3) A new method of fitting homogeneously constrained polynomials has been added.

1.2.0.0

Homogeneously constrained polynomials have been added

1.1.0.0

The issue of numerical accuracy when computing the roots of polynomials which have multiple roots has been added. More information on QR decomposition of the Vandermonde matrix and the identification of the loss of significant digits has been added.

1.0.0.0