Function
NumCosmoMathintegrate_3dim_divonne
Declaration [src]
gboolean
ncm_integrate_3dim_divonne (
NcmIntegrand3dim* integ,
gdouble xi,
gdouble yi,
gdouble zi,
gdouble xf,
gdouble yf,
gdouble zf,
gdouble epsrel,
gdouble epsabs,
const gint ngiven,
const gint ldxgiven,
gdouble* xgiven,
gdouble* result,
gdouble* error
)
Description [src]
This function computes the integral of the function integ->f over the
interval [xi, xf] and [yi, yf] and [zi, zf] using the Divonne algorithm from the Cuba library.
Parameters
integ-
Type:
NcmIntegrand3dimA pointer to
NcmIntegrand3dim.The data is owned by the caller of the function. xi-
Type:
gdoubleGbouble which is the lower integration limit of variable x.
yi-
Type:
gdoubleGbouble which is the lower integration limit of variable y.
zi-
Type:
gdoubleGbouble which is the lower integration limit of variable z.
xf-
Type:
gdoubleGbouble which is the upper integration limit of variable x.
yf-
Type:
gdoubleGbouble which is the upper integration limit of variable y.
zf-
Type:
gdoubleGbouble which is the upper integration limit of variable z.
epsrel-
Type:
gdoubleRelative error.
epsabs-
Type:
gdoubleAbsolute error.
ngiven-
Type:
const gintNumber of peaks.
ldxgiven-
Type:
const gintThe leading dimension of xgiven, i.e. the offset between one point and the next in memory (ref. libcuba documentation).
xgiven-
Type:
gdouble*List of points where the integrand might have peaks (ref. libcuba documentation).
The data is owned by the caller of the function. result-
Type:
gdouble*A pointer to a gdouble in which the function stores the result.
The data is owned by the caller of the function. error-
Type:
gdouble*A pointer to a gdouble in which the function stores the estimated error.
The data is owned by the caller of the function.