Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
v31r0 (aeb156f0)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
2DoubleFuncTest.cpp
Go to the documentation of this file.
1
// ============================================================================
2
// Include files
3
// ============================================================================
4
// STD & STL
5
// ============================================================================
6
#include <cmath>
7
#include <cstdio>
8
// ============================================================================
9
// GaudiMath
10
// ============================================================================
11
#include "
GaudiMath/Adapters.h
"
12
#include "
GaudiMath/GaudiMath.h
"
13
// ============================================================================
14
15
// ============================================================================
23
// ============================================================================
24
25
int
main
() {
26
const
GaudiMath::Function
& mypow =
GaudiMath::adapter
( pow );
27
Genfun::Argument arg( 2 );
28
for
(
double
x = 0; x < 10; ++x ) {
29
for
(
double
y = 0; y < 10; ++y ) {
30
arg[0] = x;
31
arg[1] = y;
32
printf(
"x=%6.5f y=%6.5f mypow=%+.10f pow=%+.10f pow-mypow=%+.10f \n"
, x, y, mypow( arg ), pow( x, y ),
33
pow( x, y ) - mypow( arg ) );
34
}
35
}
36
}
GaudiMath::Function
Genfun::AbsFunction Function
Definition:
GaudiMath.h:23
main
int main()
Definition:
2DoubleFuncTest.cpp:25
GaudiMath::adapter
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition:
Adapters.cpp:24
Adapters.h
GaudiMath.h
GaudiGSL
src
Tests
2DoubleFuncTest.cpp
Generated on Mon Feb 11 2019 17:48:13 for The Gaudi Framework by
1.8.11