3 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Reid Priedhorsky, 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.
20 gsl_function create_function (double (*f)(double, void *)) ;
21 gsl_function_fdf create_fdf (double (*f)(double, void *),
22 double (*df)(double, void *),
23 void (*fdf)(double, void *, double *, double *));
35 test_f (const gsl_root_fsolver_type * T,
36 const char * description, gsl_function *f,
37 double lower_bound, double upper_bound, double correct_root);
40 test_f_e (const gsl_root_fsolver_type * T, const char * description,
42 double lower_bound, double upper_bound, double correct_root);
45 test_fdf (const gsl_root_fdfsolver_type * T, const char * description,
46 gsl_function_fdf *fdf, double root, double correct_root);
49 test_fdf_e (const gsl_root_fdfsolver_type * T, const char * description,
50 gsl_function_fdf *fdf, double root, double correct_root);
57 error_handler (const char *reason, const char *file, int line);
60 func1 (double x, void * p);
63 func1_df (double x, void * p);
66 func1_fdf (double x, void * p, double *y, double *yprime);
69 func2 (double x, void * p);
72 func2_df (double x, void * p);
75 func2_fdf (double x, void * p, double *y, double *yprime);
78 func3 (double x, void * p);
81 func3_df (double x, void * p);
84 func3_fdf (double x, void * p, double *y, double *yprime);
87 func4 (double x, void * p);
90 func4_df (double x, void * p);
93 func4_fdf (double x, void * p, double *y, double *yprime);
96 func5 (double x, void * p);
99 func5_df (double x, void * p);
102 func5_fdf (double x, void * p, double *y, double *yprime);
105 func6 (double x, void * p);
108 func6_df (double x, void * p);
111 func6_fdf (double x, void * p, double *y, double *yprime);
114 sin_f (double x, void * p);
117 sin_df (double x, void * p);
120 sin_fdf (double x, void * p, double *y, double *yprime);
123 cos_f (double x, void * p);
126 cos_df (double x, void * p);
129 cos_fdf (double x, void * p, double *y, double *yprime);