Comment remaining unsolved bug.
[ardour.git] / libs / backends / wavesaudio / wavesapi / BasicTypes / WUMathConsts.h
1 /*
2     Copyright (C) 2014 Waves Audio Ltd.
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #ifndef __WUMathConsts_h__
21         #define __WUMathConsts_h__
22
23 /* Copy to include:
24 #include "BasicTypes/WUMathConsts.h"
25 */
26
27 const float kfPI =  3.1415926535898f; // PI, single precision
28 const double kdPI = 3.1415926535897932384626433832795; // PI, double precision
29
30 const float kf2PI =  6.2831853071796f; // 2*PI
31 const double kd2PI = 6.283185307179586476925286766559; // 2*PI
32
33 const float kfhalfPI =  1.5707963267949f; // 0.5*PI
34 const double kdhalfPI = 1.57079632679489661923; // 0.5*PI
35
36 const double kdLn2 = 0.69314718055994530942;    // natural log(2.0)
37 const double kdOneOverLn2 = 1.4426950408889634073599246810019;  // natural (1.0/log(2.0)) - for multiply log() to get it as with base 2
38
39 const double kdLog2 = 0.301029995663981;        // log10(2.0)
40 const double kdOneOverLog2 = 3.321928094887363; // (1.0/log10(2.0)) - for multiply log() to get it as with base 2
41
42 const double kdExponent = 2.718281828459045235360287471352; // e
43
44 const double kdSqrt2 = 1.41421356237309504880; // sqrt(2)
45
46
47
48 #endif //__WUMathConsts_h__