|
OpenMD 3.2
Molecular Dynamics in the Open
|
A collection of Legendre Polynomials. More...
#include <LegendrePolynomial.hpp>
Public Member Functions | |
| LegendrePolynomial (int maxPower) | |
| RealType | evaluate (int n, RealType x) |
| Calculates the value of the nth Legendre Polynomial evaluated at the given x value. | |
| RealType | evaluateDerivative (int n, RealType x) |
| Returns the first derivative of the nth Legendre Polynomial. | |
| const DoublePolynomial & | getLegendrePolynomial (int n) const |
| Returns the nth Legendre Polynomial. | |
Protected Attributes | |
| std::vector< DoublePolynomial > | polyList_ |
A collection of Legendre Polynomials.
Definition at line 70 of file LegendrePolynomial.hpp.
| OpenMD::LegendrePolynomial::LegendrePolynomial | ( | int | maxPower | ) |
Definition at line 51 of file LegendrePolynomial.cpp.
|
inlinevirtual |
Definition at line 73 of file LegendrePolynomial.hpp.
|
inline |
Calculates the value of the nth Legendre Polynomial evaluated at the given x value.
| n | |
| x | the value of the independent variable for the nth Legendre Polynomial function |
Definition at line 84 of file LegendrePolynomial.hpp.
|
inline |
Returns the first derivative of the nth Legendre Polynomial.
| n | |
| x | the value of the independent variable for the nth Legendre Polynomial function |
Definition at line 96 of file LegendrePolynomial.hpp.
|
inline |
Returns the nth Legendre Polynomial.
| n |
Definition at line 106 of file LegendrePolynomial.hpp.
|
protected |
Definition at line 112 of file LegendrePolynomial.hpp.