The Gaudi Framework  v28r3 (cc1cf868)
SimpleFuncTest.cpp File Reference

Test file for the class SimpleFunction. More...

#include <cmath>
#include <cstdio>
#include "GaudiMath/GaudiMath.h"
Include dependency graph for SimpleFuncTest.cpp:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Test file for the class SimpleFunction.

Date
2003-08-31
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru

Definition in file SimpleFuncTest.cpp.

Function Documentation

int main ( )

Definition at line 24 of file SimpleFuncTest.cpp.

25 {
26 
27  const GaudiMath::Function& mysin = GaudiMath::SimpleFun( sin );
28 
29  for( double x = 0 ; x < 10 ; x+= 0.25 ) {
30  printf( "x=%8.5f mysin=%+.10f sin=%+.10f sin-mysin=%+.19f \n",
31  x , mysin(x) , sin(x) , sin(x)-mysin(x) );
32  }
33 
34 }
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition: GaudiMath.h:31
Genfun::AbsFunction Function
Definition: GaudiMath.h:24
T sin(T...args)
T printf(T...args)