packages feed

exact-real 0.11.1 → 0.11.2

raw patch · 2 files changed

+3/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

exact-real.cabal view
@@ -1,5 +1,5 @@ name:         exact-real-version:      0.11.1+version:      0.11.2 synopsis:     Exact real arithmetic description:   A type to represent exact real numbers using a fast binary Cauchy sequence
src/Data/CReal/Converge.hs view
@@ -60,11 +60,11 @@   -- doesn't fail to terminate.   -- >>> let f  x = x ^ 3 - 2 * x + 2   -- >>> let f' x = 3 * x ^ 2 - 2-  -- >>> let initialGuess = 0.1+  -- >>> let initialGuess = 0.1 :: Float   -- >>> let improve x = x - f x / f' x   -- >>> let err x = abs (f x)   -- >>> convergeErr err (iterate improve initialGuess)-  -- Just 0.1+  -- Just 1.0142132   convergeErr :: Ord (Element a) => (Element a -> Element a) -> a -> Maybe (Element a)  -- | Every list of equatable values is an instance of 'Converge'. 'converge'