The Gaudi Framework  v31r0 (aeb156f0)
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.

24  {
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 }
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition: GaudiMath.h:27
Genfun::AbsFunction Function
Definition: GaudiMath.h:23
T sin(T...args)
T printf(T...args)