Matlab实现——Lagrange approximation
来源:互联网 发布:linux history 倒序 编辑:程序博客网 时间:2024/05/22 15:24
lagran.m
%Program 4.1 (Lagrange approximation)function [C,L]=lagran(X,Y)%Input - X is a vector that contains a list of abscissas% - Y is a vector that contains a list of ordinates%Output - C is a matrix that contains the coefficents of% the Lagrange interpolatory polynomial% - L is a matrix that contains the Lagrange% coefficient polynomialsw=length(X); n=w-1; L=zeros(w,w);%Form the Lagrange coefficient polynomialsfor k=1:n+1 V=1; for j=1:n+1 if k~=j V=conv(V,poly(X(j)))/(X(k)-X(j)); end end L(k,:)=V;end%Determine the coefficients of the Lagrange interpolator polynomialC=Y*L;
untitled.m
X=[0,0.2,0.4,0.6,0.8,1];Y=[1,2.7183^0.2,2.7183^0.4,2.7183^0.6,2.7183^0.8,2.7183];[C,L]=lagran(X,Y)
- Matlab实现——Lagrange approximation
- 拉格朗日插值(Lagrange)C++实现
- Java实现lagrange 插值法
- 拉格朗日(lagrange)插值及其MATLAB程序
- lagrange
- Lagrange
- 增广Lagrange乘子法python实现
- 深度增强学习David Silver(六)——Value Function Approximation
- 斯特林公式(Stirling's approximation)—对n!进行估值
- Approximation Algorithms
- 凸优化理论——无约束最优化方法 + Lagrange multipliers + KKT conditions
- 拉格朗日插值法在数据分析中的应用——Python插值scimpy,lagrange
- SVM——(三)对偶性和KKT条件(Lagrange duality and KKT condition)
- Matlab实现——Euler's Method
- Matlab实现——Recursive Trapezoidal Rule
- Matlab实现——Clamped Cubic Spline
- Matlab实现——Adams-Bashforth-Method
- Matlab实现——Forward-substitution
- 在地图上画标注用到的资料
- 尾插法创建单链表
- Matlab实现——Euler's Method
- 智力题——10.分药
- Matlab实现——Recursive Trapezoidal Rule
- Matlab实现——Lagrange approximation
- visual studio 2010 directory configuration
- JDK使用InvocationHandler和Proxy实现动态代理
- Matlab实现——Clamped Cubic Spline
- ubuntu(Debian)中ISO相关控制命令
- PostgreSQL的数据存储(十一)---数据存储
- 当人生中转换角色时,我感受到我真的很幸福
- Matlab实现——Adams-Bashforth-Method
- HDU 2035 后三位