3 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Jim Davies, 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.
25 #include <gsl/gsl_math.h>
26 #include <gsl/gsl_test.h>
27 #include <gsl/gsl_sort.h>
28 #include <gsl/gsl_sort_vector.h>
29 #include <gsl/gsl_statistics.h>
30 #include <gsl/gsl_ieee_utils.h>
34 /* Test program for mean.c. JimDavies 7.96 */
36 #define BASE_LONG_DOUBLE
37 #include "templates_on.h"
38 #include "test_float_source.c"
39 #include "templates_off.h"
40 #undef BASE_LONG_DOUBLE
43 #include "templates_on.h"
44 #include "test_float_source.c"
45 #include "templates_off.h"
49 #include "templates_on.h"
50 #include "test_float_source.c"
51 #include "templates_off.h"
55 #include "templates_on.h"
56 #include "test_int_source.c"
57 #include "templates_off.h"
61 #include "templates_on.h"
62 #include "test_int_source.c"
63 #include "templates_off.h"
67 #include "templates_on.h"
68 #include "test_int_source.c"
69 #include "templates_off.h"
73 #include "templates_on.h"
74 #include "test_int_source.c"
75 #include "templates_off.h"
79 #include "templates_on.h"
80 #include "test_int_source.c"
81 #include "templates_off.h"
85 #include "templates_on.h"
86 #include "test_int_source.c"
87 #include "templates_off.h"
91 #include "templates_on.h"
92 #include "test_int_source.c"
93 #include "templates_off.h"
97 #include "templates_on.h"
98 #include "test_int_source.c"
99 #include "templates_off.h"
108 gsl_ieee_env_setup ();
110 for (s1 = 1; s1 < 4 ; s1++)
112 s2 = (s1 < 3) ? 1 : (s1 - 1) ;
115 test_float_func (s1,s2);
116 test_long_double_func (s1,s2);
118 test_ulong_func (s1,s2);
119 test_long_func (s1,s2);
120 test_uint_func (s1,s2);
121 test_int_func (s1,s2);
122 test_ushort_func (s1,s2);
123 test_short_func (s1,s2);
124 test_uchar_func (s1,s2);
125 test_char_func (s1,s2);
130 exit (gsl_test_summary ());