| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Functions
SimpleFuncTest.cpp File Reference

Test file for the class SimpleFunction. More...

`#include <math.h>`
`#include <stdio.h>`
`#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 {
31 printf( "x=%8.5f mysin=%+.10f sin=%+.10f sin-mysin=%+.19f \n",
32 x , mysin(x) , sin(x) , sin(x)-mysin(x) );
33 }
34
35 exit(0);
36
37 }
GaudiMath::SimpleFun
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition: GaudiMath.h:31
GaudiMath::Function
Genfun::AbsFunction Function
Definition: GaudiMath.h:24
std::sin
T sin(T...args)
std::exit
T exit(T...args)
std::printf
T printf(T...args)