48 ChebyshevU::ChebyshevU(
int maxPower) : maxPower_(maxPower) {
49 assert(maxPower >= 0);
50 GeneratePolynomials(maxPower_);
53 void ChebyshevU::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 ChebyshevU::GenerateFirstTwoTerms() {
72 polyList_.push_back(u0);
76 polyList_.push_back(u1);
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.