class RealPolynomialFunction1D extends DoubleFunction1D {

  @Override
  public Double evaluate(final Double x) {
    Validate.notNull(x, "x");
    double y = _coefficients[_n - 1];
    for (int i = _n - 2; i >= 0; i--) {
      y = x * y + _coefficients[i];
    }
    return y;
  }

  public  RealPolynomialFunction1D(final double... coefficients);

}