math-functions-0.3.4.4: Collection of tools for numeric computations

Copyright | (c) 2009 2011 Bryan O'Sullivan
License | BSD3
Maintainer | bos@serpentine.com
Stability | experimental
Portability | portable
Safe Haskell | Safe-Inferred
Language | Haskell2010

Numeric.MathFunctions.Constants

Contents

- IEE754 constants
- Mathematical constants

Description

Constant values common to much numeric code.

Synopsis

- m_epsilon :: Double
- m_sqrt_eps :: Double
- m_huge :: Double
- m_tiny :: Double
- m_max_exp :: Int
- m_pos_inf :: Double
- m_neg_inf :: Double
- m_NaN :: Double
- m_max_log :: Double
- m_min_log :: Double
- m_1_sqrt_2 :: Double
- m_2_sqrt_pi :: Double
- m_ln_sqrt_2_pi :: Double
- m_sqrt_2 :: Double
- m_sqrt_2_pi :: Double
- m_eulerMascheroni :: Double

# IEE754 constants

m_epsilon :: Double Source #

The smallest `Double` ε such that 1 + ε ≠ 1.

m_sqrt_eps :: Double Source #

    sqrt m_epsilon

Since: 0.3.3.0

m_huge :: Double Source #

Largest representable finite value.

m_tiny :: Double Source #

The smallest representable positive normalized value.

m_max_exp :: Int Source #

The largest `Int` x such that 2**(x-1) is approximately representable as a `Double`.

m_pos_inf :: Double Source #

Positive infinity.

m_neg_inf :: Double Source #

Negative infinity.

m_NaN :: Double Source #

Not a number.

m_max_log :: Double Source #

Maximum possible finite value of `log x`

m_min_log :: Double Source #

Logarithm of smallest normalized double (`m_tiny`)

# Mathematical constants

m_1_sqrt_2 :: Double Source #

    1 / sqrt 2

m_2_sqrt_pi :: Double Source #

    2 / sqrt pi

m_ln_sqrt_2_pi :: Double Source #

    log(sqrt((2*pi))

m_sqrt_2 :: Double Source #

    sqrt 2

m_sqrt_2_pi :: Double Source #

    sqrt (2 * pi)

m_eulerMascheroni :: Double Source #

Euler–Mascheroni constant (γ = 0.57721...)