Need help in calculating taylor series

3 views (last 30 days)
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
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
James Tursa on 6 Feb 2020
What have you done so far? What specific problems are you having with your code?

Sign in to comment.

Answers (1)

Conner Hamilton
Conner Hamilton on 6 Feb 2020
I graphed sin(x) from 0 1.6 radians. Then, the user selects a number on the graph to choose Xi using the ginpht command with an h value of .01. This is where I am stuck afterwards.

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!