Function

NumCosmoMathintegral_cached_0_x

Declaration [src]

gint
ncm_integral_cached_0_x (
  NcmFunctionCache* cache,
  gint* F,
  gdouble x,
  gdouble* result,
  gdouble* error
)

Description [src]

This function searches for the nearest x_near value previously chosen as the upper integration limit and perform the integration at [x_near, x] interval. This result is summed to that obtained at [0, x_near] and then it is saved in the cache.

This function is not directly available to language bindings.

Parameters

cache

Type: NcmFunctionCache

A pointer to NcmFunctionCache.

The data is owned by the caller of the function.
F

Type: gint*

A gsl_function wich is the integrand.

The data is owned by the caller of the function.
x

Type: gdouble

Upper integration limit.

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.

Return value

Type: gint

The error code returned by gsl_integration_qag.