b14e4fb13b1a01f23a71692891987bd012b1a256
4 * mathematical declarations. Based on the Single UNIX(r) Specification,
7 * This file is part of the ReactOS Operating System.
10 * Created by KJK::Hyperion <noog@libero.it>
12 * THIS SOFTWARE IS NOT COPYRIGHTED
14 * This source code is offered for use in the public domain. You may
15 * use, modify or distribute it freely.
17 * This code is distributed in the hope that it will be useful but
18 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
19 * DISCLAMED. This includes but is not limited to warranties of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 #ifndef __MATH_H_INCLUDED__
24 #define __MATH_H_INCLUDED__
29 /* headers for internal usage by psxdll.dll and ReactOS */
31 #else /* ! __PSXDLL__ */
33 /* standard POSIX headers */
42 #define M_E ((double) 2.7182818285) /* Value of e */
43 #define M_LOG2E ((double) 1.4426950419) /* Value of log2(e) */
44 #define M_LOG10E ((double) 0.4342944819) /* Value of log10(e) */
45 #define M_LN2 ((double)-0.6931471806) /* Value of loge2 */
46 #define M_LN10 ((double) 2.3025850929) /* Value of loge10 */
47 #define M_PI ((double) 3.1415926536) /* Value of Pi */
48 #define M_PI_2 ((double) 1.5707963268) /* Value of Pi/2 */
49 #define M_PI_4 ((double) 0.7853981634) /* Value of Pi/4 */
50 #define M_1_PI ((double) 0.3183098862) /* Value of 1/Pi */
51 #define M_2_PI ((double) 0.6366197724) /* Value of 2/Pi */
52 #define M_2_SQRTPI ((double) 1.1283791671) /* Value of 2/Sqrt(Pi) */
53 #define M_SQRT2 ((double) 1.4142135624) /* Value of Sqrt(2) */
54 #define M_SQRT1_2 ((double) 0.7071067812) /* Value of Sqrt(1/2) */
60 #endif /* __MATH_H_INCLUDED__ */