Lagrange polynomial and its subpolynomials
Version 1.0.0.0 (17.2 KB) by
Jan Valdman
Construction of the Lagrange interpolation polynomial from its definition.
Given a set of n discrete points xp, the function computes coefficients of n Lagrange subpolynomials L_1(x), L_2(x), ...., L_n(x) satisfying the property L_i(xp_j)=0 if i~=j, L_i(xp_j)=1 if i=j, for i,j=1,...,n. A linear combination (with coefficients yp) of these subpolynomials defines a Lagrange polynomial passing through points (xp,yp).
Cite As
Jan Valdman (2026). Lagrange polynomial and its subpolynomials (https://www.mathworks.com/matlabcentral/fileexchange/62120-lagrange-polynomial-and-its-subpolynomials), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Find more on Polynomials in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
lagrangePoly/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Description updated. Title updated. |
