Help Please! Numerical methods help
显示 更早的评论
I need help I am trying to understand why this does not work properly I know logspace starts off the with value of 10 to the a and ends with 10 to the b and the last number spaces out
The aS (absolute error) and rS (relative error) should be very small but it is not
here is my code:
x=logspace(-12,12,100); s =.5.*(exp(x)-exp(x)); S = sinh(x); aS = abs((s-S)/(S)); rS = abs((s-S)); %This is the actual function for sinh(x) and that is why it is such % a small value for sinh(x) loglog(aS,'b') hold on loglog(rS,'r')
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!