exact-real 0.11.2 → 0.11.3
raw patch · 2 files changed
+4/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- exact-real.cabal +2/−2
- src/Data/CReal/Converge.hs +2/−0
exact-real.cabal view
@@ -1,8 +1,8 @@ name: exact-real-version: 0.11.2+version: 0.11.3 synopsis: Exact real arithmetic description:- A type to represent exact real numbers using a fast binary Cauchy sequence+ A type to represent exact real numbers using fast binary Cauchy sequences. license: MIT license-file: LICENSE author: Joe Hermaszewski
src/Data/CReal/Converge.hs view
@@ -58,6 +58,7 @@ -- For example trying to find the root of the following funciton @f@ with a -- poor choice of starting point. Although this doesn't find the root, it -- doesn't fail to terminate.+ -- -- >>> let f x = x ^ 3 - 2 * x + 2 -- >>> let f' x = 3 * x ^ 2 - 2 -- >>> let initialGuess = 0.1 :: Float@@ -93,6 +94,7 @@ -- which the error function should be evaluated at. -- -- Find where log x = π using Newton's method+-- -- >>> let initialGuess = 1 -- >>> let improve x = x - x * (log x - pi) -- >>> let Just y = converge (iterate improve initialGuess)