Need help in calculating taylor series
3 views (last 30 days)
Show older comments
I am considering the taylor series for F(x)=sin(x) and I need to calculate the value of f(x+1) for a zeroth order to successfully higher orders until my approximation error is 1% or the script reaches the 100th order, depending on which is smaller. I also need to determine the relative true error. How would I write this script?
2 Comments
Jim Riggs
on 6 Feb 2020
Edited: Jim Riggs
on 6 Feb 2020
If you were my student, I would ask you to explain what a Taylor series is.
Then I would ask you to write a script to calculate one.
Then we could talk about modifying the Taylor series calculation to provide the specific conditions that you want.
James Tursa
on 6 Feb 2020
What have you done so far? What specific problems are you having with your code?
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!