Lagrange polynomial

Lagrange form of the interpolation polynomial
다운로드 수: 1.9K
업데이트 날짜: 2010/2/18

라이선스 보기

% Polynomial Interpolation Problem: Lagrange Form
% x and y are vectors with the same dimensions
% Given n points: (x_k,y_k) k = 1,2,...n
% this function finds a polynomial P(x) of degree less
% than n such that P(x_k) = y_k
% --
% Remarks:
% The resulting polynomial is displayed in symbolic notation
% --
% Example
% x=[0 1 2 3 4 5 6 7];
% y=[4 -6 -1 16 -2 6 12 17];
% pol=show_polinterp(x,y);
% --
% x=[1 2 3 4 5 6 7];
% y=1+x.^3-x.^6;
% pol=show_polinterp(x,y);
%
% For evaluating pol, try
% subs(pol,x), it will return vector y
%--

인용 양식

Ernesto Momox Beristain (2024). Lagrange polynomial (https://www.mathworks.com/matlabcentral/fileexchange/26724-lagrange-polynomial), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Graphics에 대해 자세히 알아보기
도움

줌: poly2traj

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0