-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | The error function, erf, and related functions.
--   
--   A type class for the error function, erf, and related functions.
--   Instances for Float and Double.
@package erf
@version 2.0.0.0

module Data.Number.Erf

-- | 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.
class (Floating a) => Erf a
erf :: Erf a => a -> a
erfc :: Erf a => a -> a
erfcx :: Erf a => a -> a
normcdf :: Erf a => a -> a

-- | 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.
class (Floating a) => InvErf a
inverf :: InvErf a => a -> a
inverfc :: InvErf a => a -> a
invnormcdf :: InvErf a => a -> a
instance Data.Number.Erf.InvErf GHC.Types.Double
instance Data.Number.Erf.InvErf GHC.Types.Float
instance Data.Number.Erf.Erf GHC.Types.Double
instance Data.Number.Erf.Erf GHC.Types.Float
