9#ifndef HUMMINGBIRD_MATH_LEGENDRE_POLYNOMIALS_H_
10#define HUMMINGBIRD_MATH_LEGENDRE_POLYNOMIALS_H_
std::vector< double > AllLegendrePrimeRoots(const int n)
Computes all roots of the polynomial. A total of n-1 roots will be computed and returned.
double LegendreRoot(const int n, const int k)
Computes the k-th root of the n-th order Legendre polynomial by first approximating the root with App...
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...
double LegendrePrimeRoot(const int n, const int k)
Computes the k-th root of the n-th order first derivative of the Legendre polynomial by first approxi...
double LegendrePolynomialPrimePrime(const int n, const double x)
Computes the second derivative of the Legendre polynomial of degree n using Legendre's differential e...
double ApproximateLegendrePrimeRoot(const int n, const int k)
Approximates the k-th root of the first derivative of the n-th degree Legendre polynomial using the a...
double LegendrePolynomial(const int n, const double x)
Computes the Legendre polynomial of degree n at a point x using the formula:
std::vector< double > AllLegendreRoots(const int n)
Compute all roots of the Legendre polynomial of order n.
double ApproximateLegendreRoot(const int n, const int k)
Approximates the k-th root of the n-th order Legendre polynomial with: