Bayeux  3.4.1
Core Foundation library for SuperNEMO
tgold.h
Go to the documentation of this file.
1 #ifndef GENBB_DECAY0_TGOLD_H_
2 #define GENBB_DECAY0_TGOLD_H_ 1
3 
4 // This project:
6 
7 namespace genbb {
8  namespace decay0 {
9 
11  // Input: a,c - beginning and the end of the interval [a,c];
12  // b - some point in the middle of the interval
13  // f - name of the external function; should be as
14  // function f(x,params), and additional parameters have
15  // to be transmitted with help of the void pointer params;
16  // eps - desired uncertainty of xextr determination;
17  // minmax - if minmax = 1 minimum of f(x) is searched,
18  // = 2 maximum of f(x) is searched.
19  // params - a void pointer referencing additional parameters for f
20  // Output: xextr - x-point of extremum;
21  // fextr - f(xextr).
22  // V.Tretyak, 25.09.1985.
23  void decay0_tgold(double a, double b, double c, func_type f,
24  double eps, int minmax,
25  double & xextr, double & fextr,
26  void * params = 0);
27 
28  void decay0_tgold_o(double a, double b, double c, func_type f,
29  double eps, int minmax,
30  double & xextr, double &fextr,
31  void * params = 0);
32 
33 
34  } // end of namespace decay0
35 } // end of namespace genbb
36 
37 #endif // GENBB_DECAY0_TGOLD_H_
double(* func_type)(double, void *)
Definition: common.h:11
void decay0_tgold_o(double a, double b, double c, func_type f, double eps, int minmax, double &xextr, double &fextr, void *params=0)
void decay0_tgold(double a, double b, double c, func_type f, double eps, int minmax, double &xextr, double &fextr, void *params=0)
Subroutine decay0_tgold determines maximum or minimum of the function f(x) in the interval [a,...
Top-level namespace of the Bayeux/genbb_help module library.
Definition: alpha_decay.h:51