All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SimpleFuncTest.cpp
Go to the documentation of this file.
1 // $Id: SimpleFuncTest.cpp,v 1.1 2003/11/19 16:56:01 mato Exp $
2 // ============================================================================
3 // Include files
4 // ============================================================================
5 // STD & STL
6 // ============================================================================
7 #include <math.h>
8 #include <stdio.h>
9 // ============================================================================
10 // GaudiMath
11 // ============================================================================
12 #include "GaudiMath/GaudiMath.h"
13 // ============================================================================
14 
15 // ============================================================================
23 // ============================================================================
24 
25 int main()
26 {
27 
28  const GaudiMath::Function& mysin = GaudiMath::SimpleFun( sin );
29 
30  for( double x = 0 ; x < 10 ; x+= 0.25 )
31  {
32  printf( "x=%8.5f mysin=%+.10f sin=%+.10f sin-mysin=%+.19f \n",
33  x , mysin(x) , sin(x) , sin(x)-mysin(x) );
34  }
35 
36  exit(0);
37 
38 }
39 
40 // ============================================================================
41 // The END
42 // ============================================================================
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition: GaudiMath.h:33
Genfun::AbsFunction Function
Definition: GaudiMath.h:26
int main()