| The Gaudi Framework v27r1

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

- File List
- File Members

Functions
2DoubleFuncTest.cpp File Reference

Test file for the class Adapter2DoubleFunction. More...

`#include <math.h>`
`#include <stdio.h>`
`#include "GaudiMath/GaudiMath.h"`
`#include "GaudiMath/Adapters.h"`
Include dependency graph for 2DoubleFuncTest.cpp:

Go to the source code of this file.

## Functions
int | main ()

## Detailed Description

Test file for the class Adapter2DoubleFunction.

Date
  2003-09-03

Author
  Kirill Miklyaev kiril.nosp@m.lm@i.nosp@m.ris1..nosp@m.itep.nosp@m..ru

Definition in file 2DoubleFuncTest.cpp.

## Function Documentation

int main | ( |  | ) |

Definition at line 25 of file 2DoubleFuncTest.cpp.

26 {
27 const GaudiMath::Function& mypow = GaudiMath::adapter ( pow );
28 Genfun::Argument arg(2);
29 for ( double x = 0; x < 10; ++x)
30 {
31 for (double y = 0; y < 10; ++y)
32 {
33 arg[0] = x;
34 arg[1] = y;
35 printf ("x=%6.5f y=%6.5f mypow=%+.10f pow=%+.10f pow-mypow=%+.10f \n",
36 x, y, mypow(arg), pow(x, y),
37 pow(x, y) - mypow(arg) );
38 }
39 }
40
41 exit(0);
42
43 }
GaudiMath::Function
Genfun::AbsFunction Function
Definition: GaudiMath.h:24
std::exit
T exit(T...args)
GaudiMath::adapter
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition: Adapters.cpp:27
std::pow
T pow(T...args)
std::printf
T printf(T...args)