Delete trailing whitespace at end of lines.
[pspp-builds.git] / src / math / chart-geometry.c
index 0125360f925d68b4006546409c96a72093f7f975..6ae5ebabc2cf67a1d9a728472d37df994c9565bd 100644 (file)
@@ -1,6 +1,5 @@
 /* PSPP - computes sample statistics.
    Copyright (C) 2004 Free Software Foundation, Inc.
-   Written by John Darrington <john@darrington.wattle.id.au>
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA. */
 
-
+#include <config.h>
 #include <math.h>
 #include <float.h>
 
 #include "chart-geometry.h"
 
-/* Adjust tick to be a sensible value 
+/* Adjust tick to be a sensible value
    ie:  ... 0.1,0.2,0.5,   1,2,5,  10,20,50 ... */
 double
 chart_rounded_tick(double tick)
@@ -33,16 +32,16 @@ chart_rounded_tick(double tick)
 
   double diff = DBL_MAX;
   double t = tick;
-    
+
   static const double standard_ticks[] = {1, 2, 5, 10};
 
   const double factor = pow(10,ceil(log10(standard_ticks[0] / tick))) ;
 
-  for (i = 3  ; i >= 0 ; --i) 
+  for (i = 3  ; i >= 0 ; --i)
     {
       const double d = fabs( tick - standard_ticks[i] / factor ) ;
 
-      if ( d < diff ) 
+      if ( d < diff )
        {
          diff = d;
          t = standard_ticks[i] / factor ;
@@ -50,6 +49,6 @@ chart_rounded_tick(double tick)
     }
 
   return t;
-    
+
 }