Lagrange 插值

简述

如果你手上有一堆散点,然后你可以用这个公式拟合出一个函数:

\[ f(x) = \sum_{i = 1}^n y_i \prod_{j \neq i}^n \frac{x – x_j}{x_i – x_j} \]

Continue reading →