12 #include "GaudiMath/GaudiMath.h"
13 #include "GaudiKernel/SystemOfUnits.h"
17 #include "CLHEP/GenericFunctions/Sin.hh"
18 #include "CLHEP/GenericFunctions/Cos.hh"
22 using namespace CLHEP;
38 " Test for numerical differentiation of Genfun::Cos(x) " << std::endl ;
43 for(
double x = -90 * Gaudi::Units::degree ;
44 x <= 180 * Gaudi::Units::degree ;
45 x += 10 * Gaudi::Units::degree ) {
46 double value = mysin ( x ) ;
47 double error = mysin.
error() ;
48 printf(
"x=%8.3f deg; I(Cos)=%+.19f; ActErr=%+.19f; EstErr=%+.19f;\n",
49 x / Gaudi::Units::degree , value , value-sin(x) , error );