18 #include "CLHEP/GenericFunctions/Sin.hh"
22 using namespace CLHEP;
38 " Test for numerical differentiation of Genfun::Sin(x) " << std::endl ;
44 for(
double x = -90 * Gaudi::Units::degree ;
45 x <= 180 * Gaudi::Units::degree ;
46 x += 10 * Gaudi::Units::degree ) {
47 double value = prim(x) ;
48 double error = prim1.
error() ;
50 (
" x=%8.3f deg; Sin'=%+.19f; ActualErr=%+.19f; EstimatedErr=%+.19f\n",
51 x / Gaudi::Units::degree ,
double error() const
the absolute error estimate for the last call
Genfun::AbsFunction Function
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
Numerical derivative (using GSL adaptive numerical differentiation)