Integrates the given polynomial within the given interval.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public double Integrate(
	OneVariableFunction function,
	double a,
	double b
)
Visual Basic (Declaration)
Public Function Integrate ( _
	function As OneVariableFunction, _
	a As Double, _
	b As Double _
) As Double
Visual C++
public:
virtual double Integrate(
	OneVariableFunction^ function, 
	double a, 
	double b
) sealed

Parameters

function
Type: CenterSpace.NMath.Core..::.OneVariableFunction
The polynomial to integrate.
a
Type: System..::.Double
The lower bound.
b
Type: System..::.Double
The upper bound.

Return Value

The exact area under the given polynomial within the current interval.

Implements

IIntegrator..::.Integrate(OneVariableFunction, Double, Double)

Remarks

The interval is assumed to be closed.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if passed a non-polynomial function object.

See Also