//! *this file is freware. Use it at your own risk. //! @file const math.hpp //! @author Dejan D. M. Milosavljevic //! @version 1.0 //! @date 2003 //! Miscelenious math constants. //! *this file is freware. Use it at your own risk. #ifndef Dh_DDMRM_constants_math_hpp_VERSION_1_0_ #define Dh_DDMRM_constants_math_hpp_VERSION_1_0_ namespace S_DDMRM { namespace S_math { namespace S_constants { typedef double GT_math_const; const GT_math_const GIc_GAMMA = 0.577215664901532860606512; const GT_math_const GIc_DEG2RAD = 0.017453292519943295 ; const GT_math_const GIc_RAD2DEG = 57.295779513082322900 ; const GT_math_const GIc_inv_2 = 0.5 ; const GT_math_const GIc_inv_3 = 0.333333333333333333333333 ; const GT_math_const GIc_inv_4 = 0.25 ; const GT_math_const GIc_inv_5 = 0.2 ; const GT_math_const GIc_inv_6 = 0.166666666666666666666666 ; const GT_math_const GIc_inv_7 = 0.142857142857142857142857 ; const GT_math_const GIc_inv_8 = 0.125 ; const GT_math_const GIc_inv_9 = 0.111111111111111111111111 ; const GT_math_const GIc_SQRT2 = 1.41421356237309504880 ; const GT_math_const GIc_SQRT3 = 1.73205080756887719 ; const GT_math_const GIc_SQRT5 = 2.23606797749978980 ; const GT_math_const GIc_SQRT6 = 2.44948974278317788 ; const GT_math_const GIc_SQRT7 = 2.64575131106459072 ; const GT_math_const GIc_SQRT8 = 2.82842712474619029 ; const GT_math_const GIc_SQRT_2inv = 0.707106781186547524401 ; const GT_math_const GIc_SQRT3_inv = 0.577350269189625731 ; const GT_math_const GIc_SQRT5_inv = 0.447213595499957928 ; const GT_math_const GIc_SQRT6_inv = 0.408248290463863017 ; const GT_math_const GIc_SQRT7_inv = 0.377964473009227253 ; const GT_math_const GIc_SQRT8_inv = 0.353553390593273786 ; const GT_math_const GIc_GOLD = 1.618033988749894848 ; const GT_math_const GIc_GOLD_inv = 0.618033988749894848 ; const GT_math_const GIc_E = 2.71828182845904523536 ; const GT_math_const GIc_E_inv = 0.367879441171442322 ; const GT_math_const GIc_LOG2 = 0.693147180559945309417 ; const GT_math_const GIc_LOG3 = 1.09861228866810969 ; const GT_math_const GIc_LOG4 = 1.38629436111989062 ; const GT_math_const GIc_LOG5 = 1.60943791243410037 ; const GT_math_const GIc_LOG6 = 1.791759469228055 ; const GT_math_const GIc_LOG10 = 2.30258509299404568402 ; const GT_math_const GIc_LOG2_inv = 1.44269504088896340736 ; const GT_math_const GIc_LOG3_inv = 0.910239226626837394 ; const GT_math_const GIc_LOG4_inv = 0.721347520444481704 ; const GT_math_const GIc_LOG5_inv = 0.621334934559611811 ; const GT_math_const GIc_LOG6_inv = 0.558110626551247254 ; const GT_math_const GIc_LOG10_inv = 0.434294481903251828 ; const GT_math_const GIc_PHI = 3.14159265358979323846 ; const GT_math_const GIc_PHI_half = 1.57079632679489661923 ; const GT_math_const GIc_PHI_div_2 = 1.57079632679489661923 ; const GT_math_const GIc_PHI_div_3 = 1.047197551196597850 ; const GT_math_const GIc_PHI_third = 1.047197551196597850 ; const GT_math_const GIc_PHI_div_4 = 0.785398163397448309616 ; const GT_math_const GIc_PHI_quarter = 0.785398163397448309616 ; const GT_math_const GIc_PHI_div_5 = 0.628318530717958623 ; const GT_math_const GIc_PHI_div_6 = 0.523598775598298927 ; const GT_math_const GIc_PHI_div_7 = 0.448798950512827588 ; const GT_math_const GIc_PHI_div_8 = 0.392699081698724140 ; const GT_math_const GIc_PHI_div_9 = 0.349065850398865896 ; const GT_math_const GIc_PHI_3quarter = 2.356194490192344840 ; const GT_math_const GIc_PHI_two = 6.283185307179586230 ; const GT_math_const GIc_PHI_inv = 0.318309886183790671538 ; const GT_math_const GIc_PHI_2inv = 0.636619772367581343076 ; const GT_math_const GIc_PHI_inv_2 = 0.159154943091895336 ; const GT_math_const GIc_PHI_invSQRT = 0.564189583547756286948 ; const GT_math_const GIc_PHI_2invSQRT = 1.12837916709551257390 ; } } } #endif