- #1
bremenfallturm
- 67
- 11
- Homework Statement
- You have created two interpolation polynomials, ##p_1## of degree ##1## and ##p_2## of degree ##2##. At the point ##x=2##, you get the following values
$$
\begin{cases}
p_1(2)=16.52848966 \\
p_2(2)=14.1764705
\end{cases}
$$
Approximate the absolute and relative errors in y at ##x=2##.
- Relevant Equations
- Interpolation absolute error can be approximated as
##|p_{n}(a)-p_{n+1}(a)|## where ##p_{n}## represents a polynomial of degree n and ##a## the point where the absolute error is to be calculated.
Hi!
It's been a while since I've done this and I am unsure about the relative error. Should I use ##p_2(2)## as the "true value" for the relative error, that is, be in the denominator?
Or in other words, is this correct?
Absolute error : ##|p_1(2)-p_2(2)|=|16.52848966−14.01764705|##
Relative error: ##\frac{|16.52848966−14.01764705|}{|14.01764705|}##
It's been a while since I've done this and I am unsure about the relative error. Should I use ##p_2(2)## as the "true value" for the relative error, that is, be in the denominator?
Or in other words, is this correct?
Absolute error : ##|p_1(2)-p_2(2)|=|16.52848966−14.01764705|##
Relative error: ##\frac{|16.52848966−14.01764705|}{|14.01764705|}##