Should this Symbolic Limit be Zero?
Show older comments
syms x a % complex by default
syms n integer
assume(abs(a)>abs(x));
assumptions
limit(x^n/a^n,n,inf)
Should that limit be zero under the assumption that abs(a) > abs(x)?
Answers (1)
John D'Errico
on 12 Feb 2023
Edited: John D'Errico
on 12 Feb 2023
Sometimes I wish these tools could tell us where they are stumbling in the solution, when they get stuck.
For example, suppose a were zero? After all, a is sort of unconstrained. Then the limit is undefined. Yes, it should understand that a could never be zero, since we know that abs(x) < abs(a). So I tried this instead, explicitly forcing a to be positive. Yes, now it should understand that a is real valued.
syms a x
syms n integer
assume(a > 0)
assume(abs(a) > abs(x))
assumptions
limit(x^n/a^n,n,inf)
That seems to allow some answer. But as you can see, limit is a little confused even here, although it does try to resolve the issue. But one possiblity it allows is that a==x, even though we said there is a strict inequality. Anyway, the result here seems to offer a bit more of an explanation of where it is getting stuck.
2 Comments
John D'Errico
on 13 Feb 2023
The point seems clear. Limit is at least somewhat unaware of the assumptions placed on the variables.
Categories
Find more on Code Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



