20#ifndef CCGSL_DERIV_HPP
21#define CCGSL_DERIV_HPP
23#include<gsl/gsl_deriv.h>
45 return gsl_deriv_central( &f, x, h, &
result, &abserr ); }
58 inline int central( gsl_function
const* f,
double x,
double h,
double*
result,
60 return gsl_deriv_central( f, x, h,
result, abserr ); }
75 return gsl_deriv_backward( &f, x, h, &
result, &abserr ); }
88 inline int backward( gsl_function
const* f,
double x,
double h,
double*
result,
90 return gsl_deriv_backward( f, x, h,
result, abserr ); }
105 return gsl_deriv_forward( &f, x, h, &
result, &abserr ); }
118 inline int forward( gsl_function
const* f,
double x,
double h,
double*
result,
120 return gsl_deriv_forward( f, x, h,
result, abserr ); }
Class that extends gsl_function so that it can be constructed from arbitrary function objects.
int backward(function_scl const &f, double x, double h, double &result, double &abserr)
C++ version of gsl_deriv_backward().
int central(function_scl const &f, double x, double h, double &result, double &abserr)
C++ version of gsl_deriv_central().
int forward(function_scl const &f, double x, double h, double &result, double &abserr)
C++ version of gsl_deriv_forward().
double deriv(int const m, int const n, double const x)
C++ version of gsl_sf_hermite_deriv().
gsl_sf_result result
Typedef for gsl_sf_result.
The gsl package creates an interface to the GNU Scientific Library for C++.