Filter löschen
Filter löschen

Does assigning a large value to a variable do the job of var -- inf well?

3 Ansichten (letzte 30 Tage)
Mirlan Karimov
Mirlan Karimov am 27 Apr. 2020
Kommentiert: Rena Berman am 14 Mai 2020
In symbolic matlab there is limit(f,x, inf) but in non-symbolic calculation...?
  2 Kommentare
Stephen23
Stephen23 am 3 Mai 2020
Original question posted by Mirlan Karimov, recovered from Google Cache:
Does assigning a large value to a variable do the job of var -- inf well?
In symbolic matlab there is limit(f,x, inf) but in non-symbolic calculation...?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

John D'Errico
John D'Errico am 27 Apr. 2020
Bearbeitet: John D'Errico am 3 Mai 2020
Be serious. Does it do the job well? Yes. Or definitely not. Probably maybe, approximately so. To answer your question completely would take writing a book about limits, about numerical analysis. I could as easily give an example where the use of any large number is a terrible approximation. Another example where it is great.
Lets see, what is the sum as n--> inf of the terms 1/(n + log(n))? Is the infinite series convergent or divergent? How many terms do you need to convince yourself of the solution?
How about computing the sum as n--> inf of 1/n^2? How large does n need to be?
What is the limit as x --> inf, of erfc(x)? How large does x need to be that the result is close to the true value?
How many terms are needed for convergence of the Taylor series for sin(x) to within some tolerance? If x=0.1? x=5? x=100?
The point is, how large does large need to be is completely problem dependent. Knowing the answer requires understanding the mathematics of what you are doing.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by