Cpp, Numerical Computation, Programming, Computer Science, Computation.
Lagrange’a, Chebyshev and spline interpolation. Following example describes Lagrange’a method. Following wikipedia we can find polynomial based on know values in nodes. We use following formula and compute n — order polynomial. eq4 by author |i | x_i |f(x_i)| |---------------| |0 | 1 | 1 | |1 | 2 |