52#ifndef MATH_CHEBYSHEVT_HPP
53#define MATH_CHEBYSHEVT_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_;
110 void GeneratePolynomials(
int maxPower);
113 void GenerateFirstTwoTerms();
A collection of Chebyshev Polynomials.
RealType evaluateDerivative(int n, RealType x)
Returns the first derivative of the nth Chebyshev Polynomial.
RealType evaluate(int n, RealType x)
Calculates the value of the nth Chebyshev Polynomial evaluated at the given x value.
const DoublePolynomial & getChebyshevPolynomial(int n) const
Returns the nth Chebyshev Polynomial.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.