48 ChebyshevT::ChebyshevT(
int maxPower) : maxPower_(maxPower) {
49 assert(maxPower >= 0);
50 GeneratePolynomials(maxPower_);
53 void ChebyshevT::GeneratePolynomials(
int maxPower) {
54 GenerateFirstTwoTerms();
61 for (
int i = 2; i <= maxPower; ++i) {
64 cn = polyList_[i - 1] * twoX - polyList_[i - 2];
65 polyList_.push_back(cn);
69 void ChebyshevT::GenerateFirstTwoTerms() {
72 polyList_.push_back(t0);
76 polyList_.push_back(t1);
void setCoefficient(int exponent, const Real &coefficient)
Set the coefficent of the specified exponent, if the coefficient is already there,...
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.