Mathematical Constants

The library ensures that the standard BSD mathematical constants are defined. For reference here is a list of the constants.

M_E
The base of exponentials, @math{e}
M_LOG2E
The base-2 logarithm of @math{e}, @math{\log_2 (e)}
M_LOG10E
The base-10 logarithm of @math{e}, @c{$\log_{10}(e)$} @math{\log_10 (e)}
M_SQRT2
The square root of two, @math{\sqrt 2}
M_SQRT1_2
The square root of one-half, @c{$\sqrt{1/2}$} @math{\sqrt{1/2}}
M_SQRT3
The square root of three, @math{\sqrt 3}
M_PI
The constant pi, @math{\pi}
M_PI_2
Pi divided by two, @math{\pi/2}
M_PI_4
Pi divided by four, @math{\pi/4}
M_SQRTPI
The square root of pi, @math{\sqrt\pi}
M_2_SQRTPI
Two divided by the square root of pi, @math{2/\sqrt\pi}
M_1_PI
The reciprocal of pi, @math{1/\pi}
M_2_PI
Twice the reciprocal of pi, @math{2/\pi}
M_LN10
The natural logarithm of ten, @math{\ln(10)}
M_LN2
The natural logarithm of two, @math{\ln(2)}
M_LNPI
The natural logarithm of pi, @math{\ln(\pi)}
M_EULER
Euler's constant, @math{\gamma}