Hello, i'm having issues with the function Limit in MATLAB. I put this ecuation y = (x^2 - x - 2)*sqrt(a*x^2 + 1)/(x^2 - a); and then i tryed to do this function:
AHI = limit(y, x, -inf) but when I evaluated that, Matlab answered me with the same question, it answered me this: AHI =
limit(((a*x^2 + 1)^(1/2)*(- x^2 + x + 2))/(- x^2 + a), x, -Inf). Does anyone know what am I doing wrong or how can I solve it? Thank you.
but now I have another problem. With the same ecuation and now typing this, i get an error in another limit. What am I doing wrong in that one?
y = (x^2 - x - 2)*sqrt(a*x^2 + 1)/(x^2 - a);
assume(a, 'Real')
AVI = limit(y, x, a, 'left')
AVI =
((a^3 + 1)^(1/2)*(- a^2 + a + 2))/(- a^2 + a)

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Mär. 2021

1 Stimme

It is having trouble calculating the complex limit.
If you restrict a to real then it has no problem calculating the limit.

5 Kommentare

Thank you very much, but now I have another problem. With the same ecuation and now typing this, i get an error in another limit. What am I doing wrong in that one?
y = (x^2 - x - 2)*sqrt(a*x^2 + 1)/(x^2 - a);
assume(a, 'Real')
AVI = limit(y, x, a, 'left')
AVI =
((a^3 + 1)^(1/2)*(- a^2 + a + 2))/(- a^2 + a)
Walter Roberson
Walter Roberson am 29 Mär. 2021
What error is that? That looks like a reasonable limit
My teacher used that function and this appeared:
y = x^2-9/x-a;
VIzq = limit(y, x, a, 'left')
piecewise(0 < a^2 - 9, -Inf, a^2 - 9 < 0, Inf, a == -3 | a == 3, 0)
Walter Roberson
Walter Roberson am 29 Mär. 2021
That result is obviously wrong, unless a has been assigned something odd.
Consider for example a = 1, so a^2-9 = 1-9 = -8 which is < 0. According to the output shown, the limit should be Inf. So let us look:
x^2-9/x-1 as x approaches 1, does not involve a division by 0 and does not involve infinities. So the limit can be reached through plain substitution: (1)^2-9/1-1 -> 1-9-1 -> -9 . That is not even positive, let alone +infinity.
Juan Rodríguez
Juan Rodríguez am 29 Mär. 2021
Okey, thank you very much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by