diff --git a/lib/TabFunction.cpp b/lib/TabFunction.cpp index 1993b3d..a980f57 100644 --- a/lib/TabFunction.cpp +++ b/lib/TabFunction.cpp @@ -107,6 +107,7 @@ double TabFunction::operator()(const double *arg) const xs[2] = next(it)->first; ys[2] = next(it)->second; + // Lagrange polynomial coefficient computation as[0] = (x - xs[1]) / (xs[0] - xs[1]) * (x - xs[2]) / (xs[0] - xs[2]);