The Gaudi Framework
v25r5
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
SimpleFuncTest.cpp
Go to the documentation of this file.
1
// $Id: SimpleFuncTest.cpp,v 1.1 2003/11/19 16:56:01 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
// ============================================================================
14
15
// ============================================================================
23
// ============================================================================
24
25
int
main
()
26
{
27
28
const
GaudiMath::Function
& mysin =
GaudiMath::SimpleFun
( sin );
29
30
for
(
double
x = 0 ; x < 10 ; x+= 0.25 )
31
{
32
printf(
"x=%8.5f mysin=%+.10f sin=%+.10f sin-mysin=%+.19f \n"
,
33
x , mysin(x) , sin(x) , sin(x)-mysin(x) );
34
}
35
36
exit(0);
37
38
}
39
40
// ============================================================================
41
// The END
42
// ============================================================================
GaudiMath::SimpleFun
Genfun::GaudiMathImplementation::SimpleFunction SimpleFun
Definition:
GaudiMath.h:33
GaudiMath::Function
Genfun::AbsFunction Function
Definition:
GaudiMath.h:26
main
int main()
Definition:
SimpleFuncTest.cpp:25
GaudiMath.h
GaudiGSL
src
Tests
SimpleFuncTest.cpp
Generated on Tue Oct 21 2014 11:36:21 for The Gaudi Framework by
1.8.7