HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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