erf-1.0.0.0: The error function, erf, and friendsSource codeContentsIndex
Data.Number.Erf
Synopsis
class Floating a => Erf a where
erf :: a -> a
erfc :: a -> a
erfcx :: a -> a
normcdf :: a -> a
Documentation
class Floating a => Erf a whereSource

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
erf :: a -> aSource
erfcSource
:: a
-> a
erfc x = 1 - erf x
erfcxSource
:: a
-> a
erfcx x = exp (x*x) * erfc x
normcdfSource
:: a
-> a
normcdf x = erfc(-x  sqrt 2)  2
Produced by Haddock version 2.6.1