Fixed yet another problem caused by use of abs where fabs is appropriate
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Mar 2012 14:51:40 +0000 (15:51 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Mar 2012 14:51:40 +0000 (15:51 +0100)
src/language/stats/examine.c

index 069f807c0a17d40cae2deed032021228c4855250..dc53d806c0869c8da9b1870a9dfae2265ddd9a2c 100644 (file)
@@ -1534,7 +1534,7 @@ calculate_n (const void *aux1, void *aux2 UNUSED, void *user_data)
       if (examine->histogram)
         {
           /* Sturges Rule */
-          double bin_width = abs (es[v].minimum - es[v].maximum)
+          double bin_width = fabs (es[v].minimum - es[v].maximum)
             / (1 + log2 (es[v].cc))
             ;