LImit is not corrcet

조회 수: 2 (최근 30일)
Shivangi Chauhan
Shivangi Chauhan 2017년 1월 20일
편집: Jan 2017년 1월 20일
Hi All, I am trying to find the limit of below function in matlab :
limit(( -24*sin(x)+6*x*exp(x)+30*x*sin(x)+6*x*cos(x)-exp(x)*(x^3)-((x^3))*sin(x)-((x^3))*cos(x)-24+4*((x^3))-6*((x^2))*sin(x))/(6* ((x^4))* sin(x)),x,0)
and ans is
NaN
But Actual answer is 26/120. Can anyone help me...how to write in matlab?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 1월 20일
Maple says that the limit is undefined

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2017년 1월 20일
편집: Jan 2017년 1월 20일
My first guess is that you have a typo in your formula. The second guess is, that the source of your opinion, that 26/120 is the correct limit, is wrong.
What about checking the formula manually?
x = -0.01:0.000001:0.01;
y = -24.*sin(x)+6*x.*exp(x)+30*x.*sin(x)+6*x.*cos(x)-exp(x).*(x.^3)-(x.^3).*sin(x) - ...
(x.^3).*cos(x)-24+4*(x.^3) - 6.*((x.^2)).*sin(x))./(6* (x.^4).* sin(x);
plot(x, y);
It does not look like the equation has a limit at the position 0. I know this is not a mathematical proof, but a strong hint to get more doubts.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by