+ exec* functions
[meinos.git] / apps / include / math.h
blob6f4aed9c69210c346c17acc259675a2f997468d1
1 /*
2 meinOS - A unix-like x86 microkernel operating system
3 Copyright (C) 2008 Janosch Gräf <janosch.graef@gmx.net>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _MATH_H_
20 #define _MATH_H_
22 # define M_E 2.7182818284590452354 /* e */
23 # define M_LOG2E 1.4426950408889634074 /* log_2 e */
24 # define M_LOG10E 0.43429448190325182765 /* log_10 e */
25 # define M_LN2 0.69314718055994530942 /* log_e 2 */
26 # define M_LN10 2.30258509299404568402 /* log_e 10 */
27 # define M_PI 3.14159265358979323846 /* pi */
28 # define M_PI_2 1.57079632679489661923 /* pi/2 */
29 # define M_PI_4 0.78539816339744830962 /* pi/4 */
30 # define M_1_PI 0.31830988618379067154 /* 1/pi */
31 # define M_2_PI 0.63661977236758134308 /* 2/pi */
32 # define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */
33 # define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
34 # define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
36 #define FLT_EVAL_METHOD 0
37 typedef double_t double;
38 typedef float_t float;
40 #endif