32 lines
837 B
C++
32 lines
837 B
C++
/*
|
|
# <<BEGIN-copyright>>
|
|
# <<END-copyright>>
|
|
*/
|
|
|
|
#ifndef nf_integration_h_included
|
|
#define nf_integration_h_included
|
|
|
|
#include <nf_utilities.h>
|
|
#include <nf_Legendre.h>
|
|
|
|
#if defined __cplusplus
|
|
extern "C" {
|
|
namespace GIDI {
|
|
#endif
|
|
|
|
#define nf_GnG_adaptiveQuadrature_MaxMaxDepth 20
|
|
|
|
typedef nfu_status (*nf_GnG_adaptiveQuadrature_callback)( nf_Legendre_GaussianQuadrature_callback integrandFunction, void *argList, double x1,
|
|
double x2, double *integral );
|
|
|
|
nfu_status nf_GnG_adaptiveQuadrature( nf_GnG_adaptiveQuadrature_callback quadratureFunction, nf_Legendre_GaussianQuadrature_callback integrandFunction,
|
|
void *argList, double x1, double x2, int maxDepth, double tolerance, double *integral, long *evaluations );
|
|
|
|
#if defined __cplusplus
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#endif /* End of nf_integration_h_included. */
|
|
|