52#ifndef MATH_LEGENDREPOLYNOMIALS_HPP
53#define MATH_LEGENDREPOLYNOMIALS_HPP
82 assert(n <= maxPower_ && n >= 0);
83 return polyList_[n].evaluate(x);
94 assert(n <= maxPower_ && n >= 0);
95 return polyList_[n].evaluateDerivative(x);
104 assert(n <= maxPower_ && n >= 0);
109 std::vector<DoublePolynomial> polyList_;
112 void GeneratePolynomials(
int maxPower);
113 virtual void GenerateFirstTwoTerms();
A collection of Legendre Polynomials.
RealType evaluate(int n, RealType x)
Calculates the value of the nth Legendre Polynomial evaluated at the given x value.
const DoublePolynomial & getLegendrePolynomial(int n) const
Returns the nth Legendre Polynomial.
RealType evaluateDerivative(int n, RealType x)
Returns the first derivative of the nth Legendre Polynomial.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.