DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
m_constants.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3 // AND EFFORT DISPLACEMENT
4 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // --------------------------------------------------------------------------
20 
21 
22 #ifndef M_CONSTANTS_H
23 #define M_CONSTANTS_H
24 
25 #ifndef M_PI
26 #define M_PI 3.14159265358979323846
27 #endif
28 
29 #ifndef M_E
30 #define M_E 2.7182818284590452354
31 #endif
32 
33 #ifndef M_LOG2E
34 #define M_LOG2E 1.4426950408889634074
35 #endif
36 
37 #ifndef M_LOG10E
38 #define M_LOG10E 0.43429448190325182765
39 #endif
40 
41 #ifndef M_LN2
42 #define M_LN2 0.69314718055994530942
43 #endif
44 
45 #ifndef M_LN10
46 #define M_LN10 2.30258509299404568402
47 #endif
48 
49 #ifndef M_PI_2
50 #define M_PI_2 1.57079632679489661923
51 #endif
52 
53 #ifndef M_PI_4
54 #define M_PI_4 0.78539816339744830962
55 #endif
56 
57 #ifndef M_1_PI
58 #define M_1_PI 0.31830988618379067154
59 #endif
60 
61 #ifndef M_2_PI
62 #define M_2_PI 0.63661977236758134308
63 #endif
64 
65 #ifndef M_2_SQRTPI
66 #define M_2_SQRTPI 1.12837916709551257390
67 #endif
68 
69 #ifndef M_SQRT2
70 #define M_SQRT2 1.41421356237309504880
71 #endif
72 
73 #ifndef M_SQRT1_2
74 #define M_SQRT1_2 0.70710678118654752440
75 #endif
76 
77 #endif // M_CONSTANTS_H