Exercise · ZW-INTERPOLATION-ERROR-007 · ★★☆ Intermediate

With nodes \(x_0=0,\ x_1=2\) and \(f(x)=x^3\) (\(n=1\)), what is \(\prod(x-x_i)\) at \(x=1\)?

Choose one option.

Show answer
  • A. \(-1\)

Explanation

One computes \((1-0)(1-2)=-1\); the option with the opposite sign corresponds to dropping the sign of the second factor.

Study Numerical methods in ZWMath →

Review the concept: Interpolation error

The interpolation error is the difference between \(f(x)\) and the polynomial \(P(x)\) that approximates it at the nodes \(x_0,\dots,x_n\); it depends on \(f^{(n+1)}\) and on \(\prod(x-x_i)\).

\[f(x)-P_n(x)=\frac{f^{(n+1)}(\xi)}{(n+1)!}\prod_{i=0}^{n}(x-x_i)\]

More practice problems: interpolation error

← ZW-INTERPOLATION-ERROR-006 ZW-INTERPOLATION-ERROR-008 →