6f51bfa3f6d180dcce5c11cd83e8cd290ca6a791
[ardour.git] / libs / backends / wavesaudio / wavesapi / BasicTypes / WUMathConsts.h
1 /*
2     Copyright (C) 2013 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 #ifndef __WUMathConsts_h__
20         #define __WUMathConsts_h__
21         
22 /* Copy to include:
23 #include "BasicTypes/WUMathConsts.h"
24 */
25
26 const float kfPI =  3.1415926535898f; // PI, single precision
27 const double kdPI = 3.1415926535897932384626433832795; // PI, double precision
28
29 const float kf2PI =  6.2831853071796f; // 2*PI
30 const double kd2PI = 6.283185307179586476925286766559; // 2*PI
31
32 const float kfhalfPI =  1.5707963267949f; // 0.5*PI
33 const double kdhalfPI = 1.57079632679489661923; // 0.5*PI
34
35 const double kdLn2 = 0.69314718055994530942;    // natural log(2.0)
36 const double kdOneOverLn2 = 1.4426950408889634073599246810019;  // natural (1.0/log(2.0)) - for multiply log() to get it as with base 2
37
38 const double kdLog2 = 0.301029995663981;        // log10(2.0)
39 const double kdOneOverLog2 = 3.321928094887363; // (1.0/log10(2.0)) - for multiply log() to get it as with base 2
40
41 const double kdExponent = 2.718281828459045235360287471352; // e
42
43 const double kdSqrt2 = 1.41421356237309504880; // sqrt(2)
44
45
46
47 #endif //__WUMathConsts_h__