Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
This function performs the Lagrange interpolation of a function (y) or its derivative (dy/dx).
usage:
y=lagrange(x,pointx,pointsy,0) or
dy=lagrange(x,pointx,pointsy,1) or
dy=lagrange(x,pointx,pointsy,2)
There are two ways to find the derivative. If dydx_on (varargin(4)) is set to 1, it will base the derivative on pointx and pointsy (y will be dy/dx). If dydx_on == 2, the derivative is based on the interpolated points.
pointsy can be an array.
This function can get slow for large amounts of control points. Also, make sure to have extra control points outside the region of interpolation interest if there are lots of control points.
Citation pour cette source
Geoff Wawrzyniak (2026). lagrange interpolation and derivative (https://fr.mathworks.com/matlabcentral/fileexchange/11964-lagrange-interpolation-and-derivative), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : Lagrange polynomial interpolation
A inspiré : Lagrange Interpolator Polynomial
Informations générales
- Version 1.0.0.0 (1,4 ko)
-
Aucune licence
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.0 | Found error in the description of input arguments. Polished up code per the code metrics. |
