]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/polynomial.cc
release: 1.3.18
[lilypond.git] / flower / polynomial.cc
index 7fe77f2112bd80c7c831402aa23e060cee5e58c1..5a231ca6b2665aa524c2ee5603f759d734e41f74 100644 (file)
@@ -4,6 +4,7 @@
    (c) 1993--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
  */
 
+#include <math.h>
 
 #include "polynomial.hh"
 
@@ -51,6 +52,7 @@ Polynomial::differentiate()
     {
       coefs_[i-1] = coefs_[i] * i;
     }
+  coefs_.pop ();
 }
 
 Polynomial
@@ -76,7 +78,7 @@ Polynomial::power(int exponent, const Polynomial & src)
   return  dest;
 }
 
-const Real FUDGE = 1e-8;
+static Real const FUDGE = 1e-8;
 
 void
 Polynomial::clean()