Click or drag to resize

PolynomialIntegratorIntegrate Method

Integrates the given polynomial within the given interval.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public double Integrate(
	OneVariableFunction function,
	double a,
	double b
)

Parameters

function
Type: CenterSpace.NMath.CoreOneVariableFunction
The polynomial to integrate.
a
Type: SystemDouble
The lower bound.
b
Type: SystemDouble
The upper bound.

Return Value

Type: Double
The exact area under the given polynomial within the current interval.

Implements

IIntegratorIntegrate(OneVariableFunction, Double, Double)
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if passed a non-polynomial function object.
Remarks
The interval is assumed to be closed.
See Also