00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "mathNumbers.h"
00016 #include <math.h>
00017
00018 const double MathNumbers::pi_d = 4.0 * atan(1.0);
00019 const double MathNumbers::ln2_d = log(2.0);
00020 const double MathNumbers::rad_2_deg_d = 180.0 / MathNumbers::pi_d;
00021 const double MathNumbers::deg_2_rad_d = MathNumbers::pi_d / 180.0;
00022
00023 const float MathNumbers::pi_f = 4.0 * atan(1.0);
00024 const float MathNumbers::ln2_f = log(2.0);
00025 const float MathNumbers::rad_2_deg_f = 180.0 / MathNumbers::pi_d;
00026 const float MathNumbers::deg_2_rad_f = MathNumbers::pi_d / 180.0;
00027
00028 const PN_stdfloat MathNumbers::pi = 4.0 * atan(1.0);
00029 const PN_stdfloat MathNumbers::ln2 = log(2.0);
00030 const PN_stdfloat MathNumbers::rad_2_deg = 180.0 / MathNumbers::pi_d;
00031 const PN_stdfloat MathNumbers::deg_2_rad = MathNumbers::pi_d / 180.0;
00032