Matlab question
1 次查看(过去 30 天)
显示 更早的评论
Hey guys so this is the question. I just need the matlab code for neville's method and newton's divided differences method because i always get errors on matlab.
For general cases, IL can be calculated by
IL = integration from λ min to λ max of F (λ)dλ.
For example, Table is the set of data: F (λ) vs. λ.
values of λ (×10^−7) = 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3
values of F (λ) (×10^3) = 2.6 2.3 1.8 1.5 0.9 0.2 −0.7 −1.4 −2.
Calculate P8(λ) at λ = 4.55, 4.65, 4.75, 4.85, 4.95, 5.05, 5.15, 5.25 (×10^−7)
by Neville’s algorithm and Newton’s divided differences with the data
given in the Table, where P8(λ) is the Lagrange interpolating polynomial of degree ≤ 8. Which one is faster?
Hint: Commands tic and toc can be used to record the CPU time in
Matlab.
Please I need help as I didn't use matlab before. I just need the matlab codes for these. Thanks
6 个评论
Daniel Shub
2011-11-26
You might have better luck asking in a FreeMat forum, because that syntax doesn't look anything like MATLAB syntax.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!