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.

Orthogonal Polynomials

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.

Note

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

The orthpoly package provides some standard orthogonal polynomials.

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

orthpoly::legendre(5, x)

to generate the fifth degree Legendre polynomial in the indeterminate x. This mechanism avoids naming conflicts with other library functions. If this is found to be inconvenient, then the routines of the orthpoly package may be exported via use. E.g., after calling

use(orthpoly, legendre)

the function orthpoly::legendre may be called directly:

legendre(5, x)

All routines of the orthpoly package are exported simultaneously by

use(orthpoly)

If the identifier legendre already has a value, then use returns a warning and does not export orthpoly::legendre. The value of the identifier legendre must be deleted before it can be exported successfully from the orthpoly package.

Was this topic helpful?