52#ifndef TYPES_POLYNOMIALBENDTYPE_HPP
53#define TYPES_POLYNOMIALBENDTYPE_HPP
71 void setCoefficient(
int power, RealType coefficient) {
75 RealType getCoefficient(
int power) {
79 void calcForce(RealType theta, RealType& V, RealType& dVdr) {
80 RealType delta = theta - theta0_;
92 DoublePolynomial::const_iterator i;
94 i = pbt.polynomial_.begin();
96 if (i == pbt.polynomial_.end()) {
97 os <<
"This PolynomialBendType contains nothing" << std::endl;
101 os <<
"This PolynomialBendType contains below terms:" << std::endl;
104 os << i->second <<
"*"
105 <<
"(theta - " << pbt.getTheta() <<
")"
108 if (++i == pbt.polynomial_.end()) {
"types/PolynomialBendType.hpp"
Real evaluateDerivative(const Real &x)
Returns the first derivative of this polynomial.
Real getCoefficient(ExponentType exponent)
Returns the coefficient associated with the given power for this Polynomial.
Real evaluate(const Real &x)
Calculates the value of this Polynomial evaluated at the given x value.
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.