Test file for the class NumericalDerivative.
More...
#include <math.h>
#include <stdio.h>
#include <iostream>
#include "GaudiMath/GaudiMath.h"
#include "GaudiKernel/SystemOfUnits.h"
#include "CLHEP/GenericFunctions/Sin.hh"
Go to the source code of this file.
Test file for the class NumericalDerivative.
- Date
- 2003-08-31
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Definition in file DerivativeTest.cpp.
Definition at line 33 of file DerivativeTest.cpp.
37 " Test for numerical differentiation of Genfun::Sin(x) " <<
std::endl ;
46 double value = prim(x) ;
47 double error = prim1.
error() ;
49 (
" x=%8.3f deg; Sin'=%+.19f; ActualErr=%+.19f; EstimatedErr=%+.19f\n",
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)