Find number of terms in taylor expansion upto when error is 10^(-6)

조회 수: 1 (최근 30일)
khadija raza
khadija raza 2018년 7월 19일
댓글: Walter Roberson 2018년 7월 22일
Find number of terms in taylor expansion upto when error is 10^(-6)
  댓글 수: 7
khadija raza
khadija raza 2018년 7월 22일
what about error sir Walter? we have to consider the error to find number of terms
Walter Roberson
Walter Roberson 2018년 7월 22일
The number of terms is going to be quite different for n around 5 than it is for n around 555555555555555555555555555 . The magnitude of n matters because your error requirement is stated in absolute form, not in relative form.
I suspect the taylor series is only valid for continuous functions, but if you do not restrict n to integer then you can get large complex magnitudes.
As you have not stated an expansion point, it would make more sense to use a series expansion instead of a taylor expansion, or at least a Maclaurin series (taylor around 0)

댓글을 달려면 로그인하십시오.

답변 (1개)

Aquatris
Aquatris 2018년 7월 19일
There is an approximation for upper bound on the error (or remaining terms in Taylor expansion). Here is a link that explains the method. From there, it is still not a closed form solution but you can roughly guess the order you want for desired error.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by