Is matlab not considering L Hospital's rule, while calculating limits? Becoz there r two different answers of the function f=(1 - (cos(x)))/((2* ((x^3)))* sin(x)).
6 次查看(过去 30 天)
显示 更早的评论
Is matlab not considering L Hospital's rule, while calculating limits? Becoz there r two different answers of the function f=(1 - (cos(x)))/((2* ((x^3)))* sin(x)). Using matlab it is 'inf' and using L hospital rule by hand calculation, it is (-1/48). Which one is correct?
0 个评论
采纳的回答
Torsten
2016-2-11
Plot the function and you'll see that MATLAB's answer is correct.
The function behaves like 1/x^2 near x=0.
Best wishes
Torsten.
2 个评论
Torsten
2016-2-11
Which value are you talking about ?
(1-cos(x))/(2*x^3*sin(x)) ~ (1-(1-x^2/2))/(2*x^3*x) = 1/(4*x^2)
near x=0.
We have to see your calculations to point out the error you made.
Best wishes
Torsten.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!