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
SimpleFuncTest.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/GaudiMath.h
"
12
// ============================================================================
13
14
// ============================================================================
22
// ============================================================================
23
24
int
main
() {
25
26
const
GaudiMath::Function
& mysin =
GaudiMath::SimpleFun
( sin );
27
28
for
(
double
x = 0; x < 10; x += 0.25 ) {
29
printf(
"x=%8.5f mysin=%+.10f sin=%+.10f sin-mysin=%+.19f \n"
, x, mysin( x ), sin( x ), sin( x ) - mysin( x ) );
30
}
31
}
32
33
// ============================================================================
34
// The END
35
// ============================================================================
GaudiMath::SimpleFun
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition:
GaudiMath.h:27
GaudiMath::Function
Genfun::AbsFunction Function
Definition:
GaudiMath.h:23
main
int main()
Definition:
SimpleFuncTest.cpp:24
GaudiMath.h
GaudiGSL
src
Tests
SimpleFuncTest.cpp
Generated on Mon Feb 11 2019 17:48:13 for The Gaudi Framework by
1.8.11