Constants

The following constants are available:

Constant

Value

Comment

gammalib::pi

π

gammalib::twopi

2π

gammalib::fourpi

4π

gammalib::pihalf

π/2

gammalib::inv_pihalf

(π/2)1

gammalib::inv_sqrt2pi

(2π)1

gammalib::inv_sqrt4pi

(4π)1

gammalib::pi2

π2

gammalib::deg2rad

π/180

Multiplication converts degrees to radians

gammalib::rad2deg

180/π

Multiplication converts radians to degrees

gammalib::ln2

log2

Natural logarithm of 2

gammalib::ln10

log10

Natural logarithm of 10

gammalib::inv_ln2

(log2)1

gammalib::inv_ln10

(log10)1

gammalib::inv_loge

(log10(exp1))1

gammalib::onethird

1/3

gammalib::twothird

2/3

gammalib::fourthird

4/3

gammalib::sqrt_onehalf

1/2

gammalib::sqrt_pihalf

π/2

gammalib::sqrt_two

2;

gammalib::sqrt_twopi

2π