3 * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
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.
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.
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.
20 /* Author: B. Gough and G. Jungman */
22 #ifndef __GSL_PRECISION_H__
23 #define __GSL_PRECISION_H__
24 #include <gsl/gsl_types.h>
29 # define __BEGIN_DECLS extern "C" {
30 # define __END_DECLS }
32 # define __BEGIN_DECLS /* empty */
33 # define __END_DECLS /* empty */
39 /* A type for the precision indicator.
40 * This is mainly for pedagogy.
42 typedef unsigned int gsl_prec_t;
45 /* The number of precision types.
46 * Remember that precision-mode
49 #define _GSL_PREC_T_NUM 3
52 /* Arrays containing derived
53 * precision constants for the
54 * different precision levels.
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[];
66 #endif /* __GSL_PRECISION_H__ */