1 | /* gsl_precision.h |
2 | * |
3 | * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation; either version 3 of the License, or (at |
8 | * your option) any later version. |
9 | * |
10 | * This program is distributed in the hope that it will be useful, but |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU General Public License |
16 | * along with this program; if not, write to the Free Software |
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | /* Author: B. Gough and G. Jungman */ |
21 | |
22 | #ifndef __GSL_PRECISION_H__ |
23 | #define __GSL_PRECISION_H__ |
24 | #include <gsl/gsl_types.h> |
25 | |
26 | #undef __BEGIN_DECLS |
27 | #undef __END_DECLS |
28 | #ifdef __cplusplus |
29 | # define __BEGIN_DECLS extern "C" { |
30 | # define __END_DECLS } |
31 | #else |
32 | # define __BEGIN_DECLS /* empty */ |
33 | # define __END_DECLS /* empty */ |
34 | #endif |
35 | |
36 | __BEGIN_DECLS |
37 | |
38 | |
39 | /* A type for the precision indicator. |
40 | * This is mainly for pedagogy. |
41 | */ |
42 | typedef unsigned int gsl_prec_t; |
43 | |
44 | |
45 | /* The number of precision types. |
46 | * Remember that precision-mode |
47 | * can index an array. |
48 | */ |
49 | #define _GSL_PREC_T_NUM 3 |
50 | |
51 | |
52 | /* Arrays containing derived |
53 | * precision constants for the |
54 | * different precision levels. |
55 | */ |
56 | GSL_VAR const double gsl_prec_eps[]; |
57 | GSL_VAR const double gsl_prec_sqrt_eps[]; |
58 | GSL_VAR const double gsl_prec_root3_eps[]; |
59 | GSL_VAR const double gsl_prec_root4_eps[]; |
60 | GSL_VAR const double gsl_prec_root5_eps[]; |
61 | GSL_VAR const double gsl_prec_root6_eps[]; |
62 | |
63 | |
64 | __END_DECLS |
65 | |
66 | #endif /* __GSL_PRECISION_H__ */ |
67 | |