cvs version: make check FAIL

picca@synchrotron-soleil.fr picca@synchrotron-soleil.fr
Wed May 24 14:28:00 GMT 2006


Hello

Instead of computing 2 times fabs(fn), why not storing it in a variable ?

       result->val = fn;
-      result->err = GSL_DBL_EPSILON*fabs(fn);
+      result->err = 2.0*GSL_DBL_EPSILON;
+      double factor = fabs(fn);
+      if (factor > 1.0)
+          result->err *= factor;

Have a nice day.



More information about the Gsl-discuss mailing list