compute method
Returns the y
value of the y = f(x)
equation where the function f
is
built by interpolating the given nodes nodes and x
is the given point
at which the function has to be evaluated.
Implementation
@override
double compute(double x) {
late final RealMatrix matrix;
if (forwardDifference) {
matrix = forwardDifferenceTable();
return _forwardEvaluation(matrix, x);
} else {
matrix = backwardDifferenceTable();
return _backwardEvaluation(matrix, x);
}
}