| The Gaudi Framework v29r0 (ff2e7097)

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

- File List
- File Members

Functions
GSLAdaptersTest.cpp File Reference

test file for GSLFunAdapters More...

`#include <cstdio>`
`#include <iostream>`
`#include "GaudiMath/GaudiMath.h"`
`#include "gsl/gsl_sf_bessel.h"`
Include dependency graph for GSLAdaptersTest.cpp:

Go to the source code of this file.

## Functions
int | main ()

## Detailed Description

test file for GSLFunAdapters

Date
  2004-03-06 Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru

Definition in file GSLAdaptersTest.cpp.

## Function Documentation

int main | ( |  | ) |

regular bessel function I0 with simplest adaptor

regular bessel function I1 with 'result' frm of adaptor

Definition at line 24 of file GSLAdaptersTest.cpp.

25 {
26
28 const GaudiMath::Function& I0 = GaudiMath::adapter( gsl_sf_bessel_I0 );
30 const GaudiMath::Function& I1 = GaudiMath::adapter( gsl_sf_bessel_I1_e );
31
32 for ( int i = 0; i < 20; ++i ) {
33 const double x = double( i ) * 1 / 20.0;
34 const double x0 = I0( x );
35 const double x1 = I1( x );
36 printf( " x = %+8.4f I0=%15.8f I1=%15.8f \n", x, x0, x1 );
37 };
38 }
GaudiMath::Function
Genfun::AbsFunction Function
Definition: GaudiMath.h:24
GaudiMath::adapter
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition: Adapters.cpp:25
std::printf
T printf(T...args)