拉格朗日(Lagrange)多项式插值我要分享

Lagrange polynomial interpolation

matlab 插值 多项式 拉格 朗日 lagrange

关注次数: 285

下载次数: 0

文件大小: 15.49 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:两个输入变量X,Y是n维向量,本函数通过Lagrange方法找出通过所有点的n-1阶多项式的系数,返回给P,再通过Matlab内部函数polyval计算插值


English Description:

The two input variables X and y are n-dimensional vectors. This function finds out the coefficients of n-1 order polynomials through all points by Lagrange method, returns them to P, and then calculates the interpolation by MATLAB internal function polyval


代码预览