final double x = value - xData[1];
return quadraticFirstDerivative.evaluate(x);
} else if (high == n) {
final RealPolynomialFunction1D quadraticFirstDerivative = quadraticData.getQuadraticFirstDerivative(n - 2);
final double x = value - xData[n - 1];
return quadraticFirstDerivative.evaluate(x);
}
final RealPolynomialFunction1D quadratic1 = quadraticData.getQuadratic(low - 1);
final RealPolynomialFunction1D quadratic2 = quadraticData.getQuadratic(high - 1);
final RealPolynomialFunction1D quadratic1FirstDerivative = quadraticData.getQuadraticFirstDerivative(low - 1);
final RealPolynomialFunction1D quadratic2FirstDerivative = quadraticData.getQuadraticFirstDerivative(high - 1);