X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FMisc.hs;h=bf8414d8e859d671e5c5c8794e63ea31680f4b0a;hb=d8dc884aa9b16c7bbd88c4c107ddd684a339a191;hp=ddaad6e3ba7061f9a3ee2c119998058b3d298201;hpb=a615055dd6d6a0bd59aa7ba03305388f786306cb;p=numerical-analysis.git diff --git a/src/Misc.hs b/src/Misc.hs index ddaad6e..bf8414d 100644 --- a/src/Misc.hs +++ b/src/Misc.hs @@ -36,7 +36,8 @@ partition n a b let xi = a + k'*h, let xj = a + (k'+1)*h ] where - h = (b-a)/(fromIntegral $ toInteger n) + coerced_n = fromIntegral $ toInteger n + h = (b-a)/coerced_n -- | Compute the unit roundoff (machine epsilon) for this machine. We