- #1
peripatein
- 880
- 0
Hi,
Interpolation for the function f(x)=cos(x) for evenly distributed values of x in [0,π] (h=xi+1-xi, xi=ih, i=0,1,...,πh) is carried out. Also known are f(xi).
I am asked to determine the value of h so that the interpolation's error is ≤ 5*10-8.
I have found f'''(x) for x in [0,π] to be ≤ 1.
Now I am stuck with evaluating |(x-xi+1)(x-xi)(x-xi-1)|.
I'd truly appreciate some assistance. Thanks in advance!
Homework Statement
Interpolation for the function f(x)=cos(x) for evenly distributed values of x in [0,π] (h=xi+1-xi, xi=ih, i=0,1,...,πh) is carried out. Also known are f(xi).
I am asked to determine the value of h so that the interpolation's error is ≤ 5*10-8.
Homework Equations
The Attempt at a Solution
I have found f'''(x) for x in [0,π] to be ≤ 1.
Now I am stuck with evaluating |(x-xi+1)(x-xi)(x-xi-1)|.
I'd truly appreciate some assistance. Thanks in advance!