Test file for the class NumericalDefiniteIntregral and Integral.
More...
#include <cmath>
#include <cstdio>
#include "GaudiMath/Integral.h"
#include "GaudiMath/GaudiMath.h"
#include "GaudiKernel/SystemOfUnits.h"
#include "CLHEP/GenericFunctions/Sin.hh"
#include "CLHEP/GenericFunctions/Cos.hh"
#include "CLHEP/GenericFunctions/Gaussian.hh"
Go to the source code of this file.
Test file for the class NumericalDefiniteIntregral and Integral.
- Date
- 2003-08-31
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Definition in file Integral1Test.cpp.
Definition at line 35 of file Integral1Test.cpp.
39 " Test for numerical integration of Genfun::Sin(x) " <<
std::endl ;
47 printf(
"x=%8.3f deg; I(Sin)=%+.19f; ActErr=%+.19f;\n",
54 <<
" integral from gauss1 = " 56 <<
"\n integral from gauss2 = " 58 <<
"\n integral from gauss3 = " 62 <<
"\n integral from gauss4 = " 64 <<
"\n integral from gauss5 = " 66 <<
"\n integral from gauss6 = " 68 <<
"\n integral from gauss7 = " 70 <<
"\n integral from gauss8 = "
Genfun::AbsFunction Function
GAUDI_API double Integral(const Genfun::AbsFunction &function, const double a, const double b, const GaudiMath::Integration::Type type=GaudiMath::Integration::Adaptive, const GaudiMath::Integration::KronrodRule rule=GaudiMath::Integration::Default, const double epsabs=1.e-10, const double epsrel=1.e-7, const size_t size=1000)