I want to round off my answer upto 4 decimal place but my code dosen't work.
7 次查看(过去 30 天)
显示 更早的评论
function d=divided_diff(a,b,c,f1,f2,f3)
p=vpa((f2-f1)/(b-a));
q=vpa((f3-f2)/(c-b));
d=(q-p)/(c-a);
d=round(d,4);
end
2 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!