Click or drag to resize

FunctionMathIntegrate Method (FuncDouble, Double, Double, Double)

Evaluates a definite integral.

Namespace:  Meta.Numerics.Analysis
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static IntegrationResult Integrate(
	Func<double, double> integrand,
	double start,
	double end
)

Parameters

integrand
Type: SystemFuncDouble, Double
The function to be integrated.
start
Type: SystemDouble
The lower integration endpoint.
end
Type: SystemDouble
The upper integration endpoint.

Return Value

Type: IntegrationResult
The result of the integral.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe integrand is .
NonconvergenceExceptionThe maximum number of function evaluations was exceeded before the integral could be determined to the required precision.
Remarks
See Also