14 return 2.0 / (1 - abscissa * abscissa) / derivative_weight /
GaussLegendre(const unsigned int n_points)
Construct a new GaussLegendre object.
double ComputeWeight(const size_t k, const size_t n) override
Compute the weight for abscissa value k for a n-th order Gauss-Legendre polynomial.
std::vector< double > abscissas_
double LegendrePolynomialPrime(const int n, const double x)
Computes the first derivative of the Legendre polynomial of degree n at a point x using the recurrenc...
std::vector< double > AllLegendreRoots(const int n)
Compute all roots of the Legendre polynomial of order n.