Should this Symbolic Limit be Zero?
Afficher commentaires plus anciens
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)?
Réponses (1)
John D'Errico
le 12 Fév 2023
Modifié(e) : John D'Errico
le 12 Fév 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 commentaires
John D'Errico
le 13 Fév 2023
The point seems clear. Limit is at least somewhat unaware of the assumptions placed on the variables.
Catégories
En savoir plus sur Assumptions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




