mktccboot: Remove excessive use of defines in Makefile
[kugel-rb.git] / apps / plugins / pdbox / math.h
blobdc0e25b1e45800e1f82143b7caad6f4735283860
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2009 Wincent Balin
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 /* Everything taken from <math.h> -- W.B. */
24 #ifndef MATH_H
25 #define MATH_H
27 /* Useful constants. */
28 # define M_E 2.7182818284590452354 /* e */
29 # define M_LOG2E 1.4426950408889634074 /* log_2 e */
30 # define M_LOG10E 0.43429448190325182765 /* log_10 e */
31 # define M_LN2 0.69314718055994530942 /* log_e 2 */
32 # define M_LN10 2.30258509299404568402 /* log_e 10 */
33 # define M_PI 3.14159265358979323846 /* pi */
34 # define M_PI_2 1.57079632679489661923 /* pi/2 */
35 # define M_PI_4 0.78539816339744830962 /* pi/4 */
36 # define M_1_PI 0.31830988618379067154 /* 1/pi */
37 # define M_2_PI 0.63661977236758134308 /* 2/pi */
38 # define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */
39 # define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
40 # define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
43 # define M_El 2.7182818284590452353602874713526625L /* e */
44 # define M_LOG2El 1.4426950408889634073599246810018921L /* log_2 e */
45 # define M_LOG10El 0.4342944819032518276511289189166051L /* log_10 e */
46 # define M_LN2l 0.6931471805599453094172321214581766L /* log_e 2 */
47 # define M_LN10l 2.3025850929940456840179914546843642L /* log_e 10 */
48 # define M_PIl 3.1415926535897932384626433832795029L /* pi */
49 # define M_PI_2l 1.5707963267948966192313216916397514L /* pi/2 */
50 # define M_PI_4l 0.7853981633974483096156608458198757L /* pi/4 */
51 # define M_1_PIl 0.3183098861837906715377675267450287L /* 1/pi */
52 # define M_2_PIl 0.6366197723675813430755350534900574L /* 2/pi */
53 # define M_2_SQRTPIl 1.1283791670955125738961589031215452L /* 2/sqrt(pi) */
54 # define M_SQRT2l 1.4142135623730950488016887242096981L /* sqrt(2) */
55 # define M_SQRT1_2l 0.7071067811865475244008443621048490L /* 1/sqrt(2) */
59 #endif /* MATH_H */