Next: Infinities and Not-a-number, Up: Mathematical Functions [Index]
The library ensures that the standard BSD mathematical constants are defined. For reference, here is a list of the constants:
M_EThe base of exponentials, e
M_LOG2EThe base-2 logarithm of e, \log_2 (e)
M_LOG10EThe base-10 logarithm of e, \log_10 (e)
M_SQRT2The square root of two, \sqrt 2
M_SQRT1_2The square root of one-half, \sqrt{1/2}
M_SQRT3The square root of three, \sqrt 3
M_PIThe constant pi, \pi
M_PI_2Pi divided by two, \pi/2
M_PI_4Pi divided by four, \pi/4
M_SQRTPIThe square root of pi, \sqrt\pi
M_2_SQRTPITwo divided by the square root of pi, 2/\sqrt\pi
M_1_PIThe reciprocal of pi, 1/\pi
M_2_PITwice the reciprocal of pi, 2/\pi
M_LN10The natural logarithm of ten, \ln(10)
M_LN2The natural logarithm of two, \ln(2)
M_LNPIThe natural logarithm of pi, \ln(\pi)
M_EULEREuler’s constant, \gamma