HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulenon-integral-1.0.0.0Haskell2010

Cardano.Ledger.NonIntegral

  • 1 type
  • 7 values
valueln' :: (RealFrac a, Enum a, Show a) => a -> a
#

Compute natural logarithm via continued fraction, first splitting integral part and then using continued fractions approximation for `ln(1+x)`

valuetaylorExpCmp :: RealFrac a => a -> a -> a -> CompareResult a
#

Efficient way to compare the result of the Taylor expansion of the exponential function to a threshold value. Using error estimation one can stop early, once it's known the result will certainly be above or below the target value.