OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Algorithms
bet
math
integrate.h
Go to the documentation of this file.
1
/* integrate.h
2
integration routines
3
4
Project: Beam Envelope Tracker (BET)
5
6
Revision history
7
Date Description Programmer
8
------------ -------------------------------------------- --------------
9
09-03-06 Created Rene Bakker
10
*/
11
12
13
#ifndef _INTEGRATE_DEF
14
#define _INTEGRATE_DEF
15
16
/* qromb()
17
Returns the integral of the function func from a to b
18
with error tolerance eps.
19
Integration is performed by Romberg's method. The order
20
is set in in the program source code (default 5).
21
*/
22
double
qromb
(
23
double
( *)(
double
),
// function
24
double
,
double
,
// boundaries
25
double
= 1.0
e
-4);
// error (eps)
26
27
#endif
qromb
double qromb(double(*func)(double), double a, double b, double eps)
Definition:
integrate.cpp:126
Physics::e
constexpr double e
The value of .
Definition:
Physics.h:40
Generated on Sat Jan 4 2020 14:47:43 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5