src/main.cpp
// Evaluate a polynomial's derivative
Evaluate a polynomial's derivative
Evaluate a polynomial ' s derivative
double polyeval_derivative(Eigen::VectorXd coeffs, double x) {
  double result = 0.0;
  for (int i = 1; i < coeffs.size(); i++) {
    result += i * coeffs[i] * pow(x, i-1);
  }
  return result;
}
double polyeval_derivative ( Eigen :: VectorXd coeffs , double x ) { double result = 0.0 ; for ( int i = 1 ; i < coeffs . size ( ) ; i ++ ) { result += i * coeffs [ i ] * pow ( x , i - 1 ) ; } return result ; }
Evaluate a polynomial's derivative
Evaluate a polynomial ' s derivative