]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/polynomial.cc
Run `make grand-replace'.
[lilypond.git] / flower / polynomial.cc
index f6f229128074b8a5f8413a24149d3dc734cf05d6..56deefb714f739b111a150df40b69bd9b541e899 100644 (file)
@@ -1,12 +1,16 @@
 /*
   poly.cc -- routines for manipulation of polynomials in one var
 
-  (c) 1993--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1993--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "polynomial.hh"
 
+#include "warn.hh"
+
 #include <cmath>
+
+
 using namespace std;
 
 /*
@@ -167,10 +171,7 @@ Polynomial::check_sol (Real x) const
   Real d = p.eval (x);
 
   if (abs (f) > abs (d) * FUDGE)
-    ;
-  /*
-    warning ("x=%f is not a root of polynomial\n"
-    "f (x)=%f, f' (x)=%f \n", x, f, d);        */
+    programming_error ("not a root of polynomial\n");
 }
 
 void