la.asv

来自「fit programme for a serials of data」· ASV 代码 · 共 15 行

ASV
15
字号
function y1=L(x,y,x1)
% input x is a vector that contains a list of abscissas
%       y is a vector that cntains a list of ordinates
%       x1 is the number at where the interpolation is to be obained
% output X is the la interpolation at x1
y=0;
for k=0:n
   p=1;
   for j=0:n
      if j~=k
         p=p*(x1-x(j))/(x(k)-x(j)); 
      end
   end
   
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?