How do I write the matlab code for implementing the Bjorck-Pereyra algorithm?
显示 更早的评论
function: a=BjorckPereyra(x,f)
Input: The function f(x) is given by its values stored in the vector f at points stored in the vector x.
Both arrays are of the same size n.
Output: The program 'BjorckPereyra' computes the vector of the coefficients a in: p_n-1(x)=a1+a2x+a3x^2+...+anx^n-1
where P_n-1(x) is the interpolating polynomial.
Any help is greatly appreciated!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!