Problem with steps, limits and symbolic variable
Ältere Kommentare anzeigen
Hello. I'm trying to calculate this limit with matlab.
I wrote this function, and it works just fine if I do something like f(3)
f = @(x) (sum([1:2:2*x-1]))/(3*x^2);
However, trying to calculate limit yields an error "Unable to compute number of steps from 1 to 2*n - 1 by 2".
limit(f(x), x, 5)
I googled a little, and I think I understand why this happens, but I don't know how I can fix it.
Can someone help?
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 12 Dez. 2020
0 Stimmen
Consider the sum term alone and find what it is for n=4. Now find it for n=5. And now for n=6. Do you see a pattern? Evaluate the full expression for those values; what do you observe? How many terms do you estimate it would take before any asymptope would be effectively negligible?
1 Kommentar
Egor Svito
am 13 Dez. 2020
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!