Test file for the class NumericalIndefiniteIntregral.
More...
#include <math.h>
#include <stdio.h>
#include "GaudiMath/GaudiMath.h"
#include "GaudiKernel/SystemOfUnits.h"
#include "CLHEP/GenericFunctions/Sin.hh"
#include "CLHEP/GenericFunctions/Cos.hh"
Go to the source code of this file.
Test file for the class NumericalIndefiniteIntregral.
- Date
- 2003-08-31
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Definition in file IntegralInTest.cpp.
Definition at line 34 of file IntegralInTest.cpp.
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 );
double error() const
evaluate of previous error
Genfun::GaudiMathImplementation::NumericalIndefiniteIntegral IndIntegral
The simple class for numerical integrations.