Cpp, Numerical Computation, Programming, Computer Science, Computation.
3 | |2 | 4 | 7 | |3 | 8 | 11 | For these certain (know) node values f(x_i) we can compute (using above Lagrange’a method) interpolated values. Let us assume, we want to know value for x = 6. We use the algorithm as follows: f(6) = f(1)*[(6-2)(6-4)(6-8)]/[(1-2)(1-4)(1-8)]+