Re: Taylor Series



In article <4641ce6b$0$10311$426a74cc@xxxxxxxxxxxx>,
=?ISO-8859-1?Q?=B5?= <mu--@xxxxxxxxx> wrote:
Clearbluesky a crit :
exp(10^3) = (approx) 1 + 10^3 + (1/2)*10^6 + (1/6)*(10^9) +......

How many terms would i need to obtain exp(10^3) with error less than
1%?


You have Taylor-Lagrange inequality for positive x:

|exp(x)-(1+x+...+x^n/n!)| <= exp(x)x^(n+1)/(n+1)!

thus relative error is less than x^(n+1)/(n+1)!

You can try to find a correct n+1 using Stirling formula as a rough
approximation of n!

One can do better than that. For even moderate x,
the sum of the terms for n > x is approximately
exp(x)/2, so the number of terms needed to any
reasonable accuracy is larger than n, if one starts
from the beginning.

So suppose we look at the remainder for some n > x.
The series from n+1 to infinity is dominated by
the geometric series for the first two terms, which
is [x^(n+1)/(n+1)!]/(1 - x/(n+2)).

One can do something similar on the small side;
if one does this, to get a given relative error
the number of terms needed is O(sqrt(x)), but this
mean dropping the early terms as well.
--
This address is for information only. I do not claim that these views
are those of the Statistics Department or of Purdue University.
Herman Rubin, Department of Statistics, Purdue University
hrubin@xxxxxxxxxxxxxxx Phone: (765)494-6054 FAX: (765)494-0558
.



Relevant Pages

  • Re: When might a Jew enter a church?
    ... wrote is only an approximation. ... In that I consider the explicit Torah prohibitions ... are those of the Statistics Department or of Purdue University. ... Herman Rubin, Department of Statistics, Purdue University ...
    (soc.culture.jewish.moderated)
  • Re: =?ISO-8859-1?B?QSBoYXJkIHNlcmllIDogc3VtX24gZXhwXigtYSpusik=?=
    ... from 0 to +infty. ... approximation of the gaussian integral which is easy to calculate. ... are those of the Statistics Department or of Purdue University. ... Herman Rubin, Department of Statistics, Purdue University ...
    (sci.math)
  • Re: statistics silly question??
    ... sum, so is the sum by the integral; ... use the same approximation to the factorial. ... are those of the Statistics Department or of Purdue University. ... Herman Rubin, Department of Statistics, Purdue University ...
    (sci.math)
  • Re: random sampling of very large populations
    ... >gyro has asked: ... The error in the normal approximation corresponds to an ... I do not claim that these views are those of the Statistics Department or of Purdue University. ...
    (sci.stat.math)
  • Re: Throwing dice
    ... The distribution of the maximum, or its expectation, ... An approximation can be made if the sample size is ... are those of the Statistics Department or of Purdue University. ... Herman Rubin, Department of Statistics, Purdue University ...
    (sci.math)