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)).

조회 수: 4 (최근 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?

채택된 답변

Torsten
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
Shivangi Chauhan
Shivangi Chauhan 2016년 2월 11일
But i solve by hand, without plotting the functions, i am getting different value (near to matlab value). Can i get exact same value?
Torsten
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 CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by