Skip to content

Constants

The following constants are defined.

Constant
Description
CONSTANT_E Euler's number, \(e\)
CONSTANT_LOG2_E $ \log_2 e $
CONSTANT_LOG10_E $ \log_{10} e $
CONSTANT_PI Pi, \(\pi\)
CONSTANT_INV_PI $ 1 \over \pi $
CONSTANT_INV_SQRT_PI $ 1 \over \sqrt\pi $
CONSTANT_LN_2 $ \ln 2 $
CONSTANT_LN_10 $ \ln 10 $
CONSTANT_SQRT_2 $ \sqrt 2 $
CONSTANT_SQRT_3 $ \sqrt 3 $
CONSTANT_INV_SQRT_3 $ 1 \over \sqrt 3 $
CONSTANT_GAMMA Euler's constant, \(\gamma\)
CONSTANT_PHI The golden ratio, \(\varphi\)