| The Gaudi Framework v29r0 (ff2e7097)

- 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 <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", x, mysin( x ), sin( x ), sin( x ) - mysin( x ) );
31 }
32 }
GaudiMath::SimpleFun
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition: GaudiMath.h:28
GaudiMath::Function
Genfun::AbsFunction Function
Definition: GaudiMath.h:24
std::sin
T sin(T...args)
std::printf
T printf(T...args)