Exponentiation
Modulenon-integral-1.0.0.0Haskell2010
Cardano.Ledger.NonIntegral
- 1 type
- 7 values
- Packagenon-integral-1.0.0.0
- Exports8
- LanguageHaskell2010
- LicenceApache-2.0
- SourceNonIntegral.hs
Compute natural logarithm via continued fraction, first splitting integral part and then using continued fractions approximation for `ln(1+x)`
find n with `e^n<=x<e^(n+1)`
Instances2Eq, Show
Eq a => Eq (CompareResult a)Defined in non-integral-1.0.0.0 · Cardano.Ledger.NonIntegralShow a => Show (CompareResult a)Defined in non-integral-1.0.0.0 · Cardano.Ledger.NonIntegral
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.