QagpIntegrationIntegrate(FuncDouble, Double, Double, Int32, Double, Double, Int32, gsl_integration_rule, Boolean, Double, Double) Method |
Adaptive integration with known singular points.
Namespace: Altaxo.Calc.IntegrationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public GSL_ERROR? Integrate(
Func<double, double> f,
double[] pts,
int npts,
double epsabs,
double epsrel,
int limit,
gsl_integration_rule integrationRule,
bool debug,
out double result,
out double abserr
)
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.
- integrationRule gsl_integration_rule
- Integration rule used for integration (only for this function call).
- debug Boolean
- Setting of the debug flag (only for this function call). If the integration fails or the specified accuracy
is not reached, an exception is thrown if the debug flag is set to true. If set to false, the return value of the integration
function will be set to the appropriate error code (an exception will be thrown then only for serious errors).
- result Double
- On return, contains the integration result.
- abserr Double
- On return, contains the absolute error of integration.
Return Value
GSL_ERRORNull if successfull, otherwise the appropriate error code.
See Also