Click or drag to resize

QagpIntegrationIntegration(FuncDouble, Double, Double, Int32, Double, Double, Int32, Double, Double, Object) Method

Adaptive integration with known singular points using default settings for integration rule and debugging.

Namespace: Altaxo.Calc.Integration
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static GSL_ERROR? Integration(
	Func<double, double> f,
	double[] pts,
	int npts,
	double epsabs,
	double epsrel,
	int limit,
	out double result,
	out double abserr,
	ref Object?? tempStorage
)

Parameters

f  FuncDouble, Double
Function to integrate.
pts  Double
Range of integration including the known singular points, see remarks here: QagpIntegration
npts  Int32
Number of valid points in the array pts. Must be less or equal the size of the array pts.
epsabs  Double
Specifies the expected absolute error of integration. Should be set to zero (0) if you specify a relative error.
epsrel  Double
Specifies the expected relative error of integration. Should be set to zero (0) if you specify an absolute error.
limit  Int32
Maximum number of subintervals used for integration.
result  Double
On return, contains the integration result.
abserr  Double
On return, contains the absolute error of integration.
tempStorage  Object
Provides a temporary storage object that you can reuse for repeating function calls.

Return Value

GSL_ERROR
Null if successfull, otherwise the appropriate error code.
See Also