3 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
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.
22 #if (!GSL_RANGE_CHECK) && defined(HAVE_INLINE)
23 #undef GSL_RANGE_CHECK
24 #define GSL_RANGE_CHECK 1
30 #include <gsl/gsl_math.h>
31 #include <gsl/gsl_matrix.h>
32 #include <gsl/gsl_test.h>
33 #include <gsl/gsl_ieee_utils.h>
44 #define BASE_GSL_COMPLEX_LONG
45 #include "templates_on.h"
46 #include "test_complex_source.c"
47 #include "templates_off.h"
48 #undef BASE_GSL_COMPLEX_LONG
50 #define BASE_GSL_COMPLEX
51 #include "templates_on.h"
52 #include "test_complex_source.c"
53 #include "templates_off.h"
54 #undef BASE_GSL_COMPLEX
56 #define BASE_GSL_COMPLEX_FLOAT
57 #include "templates_on.h"
58 #include "test_complex_source.c"
59 #include "templates_off.h"
60 #undef BASE_GSL_COMPLEX_FLOAT
62 #define BASE_LONG_DOUBLE
63 #include "templates_on.h"
64 #include "test_source.c"
65 #include "templates_off.h"
66 #undef BASE_LONG_DOUBLE
69 #include "templates_on.h"
70 #include "test_source.c"
71 #include "templates_off.h"
75 #include "templates_on.h"
76 #include "test_source.c"
77 #include "templates_off.h"
81 #include "templates_on.h"
82 #include "test_source.c"
83 #include "templates_off.h"
87 #include "templates_on.h"
88 #include "test_source.c"
89 #include "templates_off.h"
93 #include "templates_on.h"
94 #include "test_source.c"
95 #include "templates_off.h"
99 #include "templates_on.h"
100 #include "test_source.c"
101 #include "templates_off.h"
105 #include "templates_on.h"
106 #include "test_source.c"
107 #include "templates_off.h"
111 #include "templates_on.h"
112 #include "test_source.c"
113 #include "templates_off.h"
117 #include "templates_on.h"
118 #include "test_source.c"
119 #include "templates_off.h"
123 #include "templates_on.h"
124 #include "test_source.c"
125 #include "templates_off.h"
128 void my_error_handler (const char *reason, const char *file,
134 gsl_ieee_env_setup ();
138 test_long_double_func ();
147 test_complex_func ();
148 test_complex_float_func ();
149 test_complex_long_double_func ();
153 #if HAVE_PRINTF_LONGDOUBLE
154 test_long_double_text ();
164 test_complex_text ();
165 test_complex_float_text ();
166 #if HAVE_PRINTF_LONGDOUBLE
167 test_complex_long_double_text ();
171 test_float_binary ();
172 test_long_double_binary ();
173 test_ulong_binary ();
177 test_ushort_binary ();
178 test_short_binary ();
179 test_uchar_binary ();
181 test_complex_binary ();
182 test_complex_float_binary ();
183 test_complex_long_double_binary ();
186 gsl_set_error_handler (&my_error_handler);
190 test_long_double_trap ();
199 test_complex_trap ();
200 test_complex_float_trap ();
201 test_complex_long_double_trap ();
204 test_complex_arith ();
205 test_complex_float_arith ();
206 test_complex_long_double_arith ();
208 exit (gsl_test_summary ());
212 my_error_handler (const char *reason, const char *file, int line, int err)
215 printf ("(caught [%s:%d: %s (%d)])\n", file, line, reason, err);