mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-10 19:20:44 +01:00
TabFunction: Added comment for quadratic interpolation.
This commit is contained in:
parent
bb044da413
commit
512494aed9
@ -107,6 +107,7 @@ double TabFunction::operator()(const double *arg) const
|
|||||||
xs[2] = next(it)->first;
|
xs[2] = next(it)->first;
|
||||||
ys[2] = next(it)->second;
|
ys[2] = next(it)->second;
|
||||||
|
|
||||||
|
// Lagrange polynomial coefficient computation
|
||||||
as[0]
|
as[0]
|
||||||
= (x - xs[1]) / (xs[0] - xs[1])
|
= (x - xs[1]) / (xs[0] - xs[1])
|
||||||
* (x - xs[2]) / (xs[0] - xs[2]);
|
* (x - xs[2]) / (xs[0] - xs[2]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user