Click or drag to resize
Accord.NET (logo)

Constants Class

Common mathematical constants.
Inheritance Hierarchy
SystemObject
  Accord.MathConstants

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static class Constants
Request Example View Source

The Constants type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberCatalan
Catalan's constant.
Public fieldStatic memberDecimalEpsilon
Double-precision machine round-off error.
Public fieldStatic memberDecimalSmall
Fixed-precision small value.
Public fieldStatic memberDoubleEpsilon
Double-precision machine round-off error.
Public fieldStatic memberDoubleSmall
Double-precision small value.
Public fieldStatic memberEulerGamma
Euler-Mascheroni constant.
Public fieldStatic memberLog2
Log of two: log(2).
Public fieldStatic memberLog2PI
Log of twice number pi: log(2*pi).
Public fieldStatic memberLog3
Log of three: log(3).
Public fieldStatic memberLogMax
Maximum log on the machine.
Public fieldStatic memberLogMin
Minimum log on the machine.
Public fieldStatic memberLogPI
Log of number pi: log(pi).
Public fieldStatic memberLogSqrt2PI
Log of square root of twice number pi: sqrt(log(2*π).
Public fieldStatic memberSingleEpsilon
Single-precision machine round-off error.
Public fieldStatic memberSingleSmall
Single-precision small value.
Public fieldStatic memberSqrt2
Square root of 2: sqrt(2).
Public fieldStatic memberSqrt2H
Half square root of 2: sqrt(2)/2.
Public fieldStatic memberSqrt2PI
Square root of twice number pi: sqrt(2*π).
Public fieldStatic memberSqrtHalfPI
Square root of half number π: sqrt(π/2).
Top
Remarks
References:
  • Cephes Math Library, http://www.netlib.org/cephes/
  • http://www.johndcook.com/cpp_expm1.html
See Also