45ac1b77a9a0ae98a12119e7e1d6a174218ee2b3
[alexxy/gromacs.git] / include / maths.h
1 /*
2  * $Id$
3  * 
4  *       This source code is part of
5  * 
6  *        G   R   O   M   A   C   S
7  * 
8  * GROningen MAchine for Chemical Simulations
9  * 
10  *               VERSION 2.0
11  * 
12  * Copyright (c) 1991-1999
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * Please refer to:
17  * GROMACS: A message-passing parallel molecular dynamics implementation
18  * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19  * Comp. Phys. Comm. 91, 43-56 (1995)
20  * 
21  * Also check out our WWW page:
22  * http://md.chem.rug.nl/~gmx
23  * or e-mail to:
24  * gromacs@chem.rug.nl
25  * 
26  * And Hey:
27  * Good ROcking Metal Altar for Chronical Sinners
28  */
29
30 #ifndef _maths_h
31 #define _maths_h
32
33 static char *SRCID_maths_h = "$Id$";
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #ifdef HAVE_IDENT
40 #ident  "@(#) maths.h 1.11 11/24/92"
41 #endif /* HAVE_IDENT */
42
43 #include <math.h>
44 #include "typedefs.h"
45
46 #ifndef M_PI
47 #define M_PI            3.14159265358979323846
48 #endif
49
50 #ifndef M_PI_2
51 #define M_PI_2          1.57079632679489661923
52 #endif
53
54 #ifndef M_2PI
55 #define M_2PI           6.28318530718
56 #endif
57
58 #ifndef M_SQRT2
59 #define M_SQRT2 sqrt(2.0)
60 #endif
61
62 #ifdef CPLUSPLUS
63 extern "C" {
64 #endif
65
66 extern  int             gmx_nint(real a);
67 extern  real            sign(real x,real y);
68
69 #ifdef CPLUSPLUS
70 }
71 #endif
72
73 #endif  /* _maths_h */