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

3 vues (au cours des 30 derniers jours)
khadija raza
khadija raza le 19 Juil 2018
Commenté : Walter Roberson le 22 Juil 2018
Find number of terms in taylor expansion upto when error is 10^(-6)
  7 commentaires
khadija raza
khadija raza le 22 Juil 2018
what about error sir Walter? we have to consider the error to find number of terms
Walter Roberson
Walter Roberson le 22 Juil 2018
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)

Connectez-vous pour commenter.

Réponses (1)

Aquatris
Aquatris le 19 Juil 2018
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.
  1 commentaire
Walter Roberson
Walter Roberson le 22 Juil 2018
khadija raza comments,
i posted the wrong question with wrong tag

Connectez-vous pour commenter.

Produits


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by