Lagrange polynomial: two equivalent m-files
2 次查看(过去 30 天)
显示 更早的评论
I have a problem with the Lagrange polynomial in Matlab.
Here they write
% YY = LAGRANGEPOLY(X,Y,XX) returns the values of the polynomial
% sampled at the points specified in XX -- the same as
% YY = POLYVAL(LAGRANGEPOLY(X,Y)).
%
I understand that XX are the points at which the Lagrange polynomial is evaluated. But the the command after the second YY doesn't contain XX. So why these two YY are the same ? How can they be the same ??
4 个评论
回答(1 个)
the cyclist
2022-12-23
Assuming you are talking about this submission to the FEX, it is not from Mathworks. It is a user-contributed function. I guess you'd need to ask the author what they meant.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!