The Gaudi Framework
v25r3
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
2DoubleFuncTest.cpp
Go to the documentation of this file.
1
// $Id: 2DoubleFuncTest.cpp,v 1.3 2005/11/25 10:27:03 mato Exp $
2
// ============================================================================
3
// Include files
4
// ============================================================================
5
// STD & STL
6
// ============================================================================
7
#include <math.h>
8
#include <stdio.h>
9
// ============================================================================
10
// GaudiMath
11
// ============================================================================
12
#include "
GaudiMath/GaudiMath.h
"
13
#include "
GaudiMath/Adapters.h
"
14
// ============================================================================
15
16
// ============================================================================
24
// ============================================================================
25
26
int
main
()
27
{
28
const
GaudiMath::Function
& mypow =
GaudiMath::adapter
( pow );
29
Genfun::Argument arg(2);
30
for
(
double
x = 0; x < 10; ++x)
31
{
32
for
(
double
y = 0; y < 10; ++y)
33
{
34
arg[0] = x;
35
arg[1] = y;
36
printf (
"x=%6.5f y=%6.5f mypow=%+.10f pow=%+.10f pow-mypow=%+.10f \n"
,
37
x, y, mypow(arg), pow(x, y),
38
pow(x, y) - mypow(arg) );
39
}
40
}
41
42
exit(0);
43
44
}
GaudiMath::Function
Genfun::AbsFunction Function
Definition:
GaudiMath.h:26
main
int main()
Definition:
2DoubleFuncTest.cpp:26
GaudiMath::adapter
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition:
Adapters.cpp:28
Adapters.h
GaudiMath.h
GaudiGSL
src
Tests
2DoubleFuncTest.cpp
Generated on Wed Jul 9 2014 09:54:13 for The Gaudi Framework by
1.8.7