mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]

Constants provided by the boost library.

Constants provided by the boost library.

Warning
including a boost header directly, instead of as wrapped in mx/math/constants.hpp, can significantly increase compilation times.

Many constants of general utility are defined by the boost c++ library. For example:

#include <boost/math/constants/constants.hpp>
using namespace boost::math::constants;
double dpi = pi<double>();
double d2pi = two_pi<double>();
double droot2 = root_two<double>();
double dln2 = ln_two<double>();
double oneDroot2 = one_div_root_two<double>();

And many others defined in boost/math/constants/constants.hpp.