planet-mitchell-0.0.0: Planet Mitchell

Safe HaskellNone
LanguageHaskell2010

Numeric.Erf

Synopsis

Documentation

class 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

erf :: a -> a #

erfc #

Arguments

:: a 
-> a
erfc x = 1 - erf x

erfcx #

Arguments

:: a 
-> a
erfcx x = exp (x*x) * erfc x

normcdf #

Arguments

:: a 
-> a
normcdf x = erfc(-x  sqrt 2)  2
Instances
Erf Double 
Instance details

Defined in Data.Number.Erf

Erf Float 
Instance details

Defined in Data.Number.Erf

Methods

erf :: Float -> Float #

erfc :: Float -> Float #

erfcx :: Float -> Float #

normcdf :: Float -> Float #