ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/math/ChebyshevPolynomials.hpp
(Generate patch)

Comparing trunk/src/math/ChebyshevPolynomials.hpp (file contents):
Revision 749 by tim, Wed Nov 16 23:10:02 2005 UTC vs.
Revision 1195 by cpuglis, Thu Dec 6 20:04:02 2007 UTC

# Line 50 | Line 50
50   #define MATH_CHEBYSHEVPOLYNOMIALS_HPP
51  
52   #include <vector>
53 + #include <cassert>
54  
55   #include "math/Polynomial.hpp"
56  
# Line 71 | Line 72 | namespace oopse {
72       * @param x the value of the independent variable for the nth Chebyshev Polynomial  function
73       */
74          
75 <    double evaluate(int n, double x) {
75 >    RealType evaluate(int n, RealType x) {
76        assert (n <= maxPower_ && n >=0);
77        return polyList_[n].evaluate(x);
78      }
# Line 82 | Line 83 | namespace oopse {
83       * @param n
84       * @param x the value of the independent variable for the nth Chebyshev Polynomial  function
85       */
86 <    double evaluateDerivative(int n, double x) {
86 >    RealType evaluateDerivative(int n, RealType x) {
87        assert (n <= maxPower_ && n >=0);
88        return polyList_[n].evaluateDerivative(x);        
89      }
# Line 100 | Line 101 | namespace oopse {
101    protected:
102  
103      std::vector<DoublePolynomial> polyList_;
104 +    void GeneratePolynomials(int maxPower);
105                  
106    private:
107          
106    void GeneratePolynomials(int maxPower);
108      virtual void GenerateFirstTwoTerms() = 0;
109          
110      int maxPower_;
111    };    
112 <
112 > /*
113    /**
114     * @class ChebyshevT
115     * @todo document
# Line 132 | Line 133 | namespace oopse {
133    private:
134      virtual void GenerateFirstTwoTerms();
135    };
136 + */
137  
136
138   } //end namespace oopse
139   #endif //MATH_CHEBYSHEVPOLYNOMIALS_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines