Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SimpleFuncTest.cpp
Go to the documentation of this file.
1 // ============================================================================
2 // Include files
3 // ============================================================================
4 // STD & STL
5 // ============================================================================
6 #include <cmath>
7 #include <cstdio>
8 // ============================================================================
9 // GaudiMath
10 // ============================================================================
11 #include "GaudiMath/GaudiMath.h"
12 // ============================================================================
13 
14 // ============================================================================
22 // ============================================================================
23 
24 int main() {
25 
26  const GaudiMath::Function& mysin = GaudiMath::SimpleFun( sin );
27 
28  for ( double x = 0; x < 10; x += 0.25 ) {
29  printf( "x=%8.5f mysin=%+.10f sin=%+.10f sin-mysin=%+.19f \n", x, mysin( x ), sin( x ), sin( x ) - mysin( x ) );
30  }
31 }
32 
33 // ============================================================================
34 // The END
35 // ============================================================================
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition: GaudiMath.h:27
Genfun::AbsFunction Function
Definition: GaudiMath.h:23
int main()