--- trunk/src/math/Polynomial.hpp 2006/01/30 22:25:27 876 +++ trunk/src/math/Polynomial.hpp 2006/05/17 21:51:42 963 @@ -53,7 +53,7 @@ #include #include #include - +#include "config.h" namespace oopse { template ElemType pow(ElemType x, int N) { @@ -204,6 +204,7 @@ namespace oopse { for (i = p.begin(); i != p.end(); ++i) { this->addCoefficient(i->first, -i->second); } + return *this; } PolynomialType& operator *= (const PolynomialType& p) { @@ -310,7 +311,7 @@ namespace oopse { /** * Tests if two polynomial have the same exponents - * @return true if these all of the exponents in these Polynomial are identical + * @return true if all of the exponents in these Polynomial are identical * @param p1 the first polynomial * @param p2 the second polynomial * @note this function does not compare the coefficient @@ -334,7 +335,7 @@ namespace oopse { return true; } - typedef Polynomial DoublePolynomial; + typedef Polynomial DoublePolynomial; } //end namespace oopse #endif //MATH_POLYNOMIAL_HPP