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

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleerf-2.0.0.0Haskell98

Data.Number.Erf

  • 2 classes
  • Packageerf-2.0.0.0
  • Exports2
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceErf.hs
classclass Floating a => Erf a where
#

Error function related functions.

The derivative of erf is x -> 2 / sqrt pi * exp (x^2), and this uniquely determines erf by erf 0 = 0.

Minimal complete definition is erfc or normcdf.

Methods

Instances2Erf
  • Erf DoubleDefined in erf-2.0.0.0 · Data.Number.Erf
  • Erf FloatDefined in erf-2.0.0.0 · Data.Number.Erf
classclass Floating a => InvErf a where
#

Inverse error functions, e.g., inverf . erf = id and erf . inverf = id assuming the appropriate codomain for inverf. Note that the accuracy may drop radically for extreme arguments.

Methods

Instances2InvErf