Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | ------------ |
||
23 | CVS : $Id: math.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
||
24 | |||
25 | File: $File$ |
||
26 | Revision: $Revision: 1.1.1.1 $ |
||
27 | Last update: $Date: 2002-03-29 14:12:51 $ |
||
28 | ------------ |
||
29 | |||
30 | math.h |
||
31 | |||
32 | **/ |
||
33 | |||
34 | /* |
||
35 | * Copyright (C) 2000 Paolo Gai |
||
36 | * |
||
37 | * This program is free software; you can redistribute it and/or modify |
||
38 | * it under the terms of the GNU General Public License as published by |
||
39 | * the Free Software Foundation; either version 2 of the License, or |
||
40 | * (at your option) any later version. |
||
41 | * |
||
42 | * This program is distributed in the hope that it will be useful, |
||
43 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
44 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
45 | * GNU General Public License for more details. |
||
46 | * |
||
47 | * You should have received a copy of the GNU General Public License |
||
48 | * along with this program; if not, write to the Free Software |
||
49 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
50 | * |
||
51 | */ |
||
52 | #ifndef __MATH_H__ |
||
53 | #define __MATH_H__ |
||
54 | |||
55 | #include <ll/math.h> |
||
56 | |||
57 | /* not POSIX but required by some programs */ |
||
58 | |||
59 | #define M_E 2.7182818284590452354 |
||
60 | #define M_LOG2E 1.4426950408889634074 |
||
61 | #define M_LOG10E 0.43429448190325182765 |
||
62 | #define M_LN2 0.69314718055994530942 |
||
63 | #define M_LN10 2.30258509299404568402 |
||
64 | #define M_PI 3.14159265358979323846 |
||
65 | #define M_PI_2 1.57079632679489661923 |
||
66 | #define M_PI_4 0.78539816339744830962 |
||
67 | #define M_1_PI 0.31830988618379067154 |
||
68 | #define M_2_PI 0.63661977236758134308 |
||
69 | #define M_2_SQRTPI 1.12837916709551257390 |
||
70 | #define M_SQRT2 1.41421356237309504880 |
||
71 | #define M_SQRT1_2 0.70710678118654752440 |
||
72 | #define PI M_PI |
||
73 | #define PI2 M_PI_2 |
||
74 | |||
75 | #endif |