Namespaces

Types in MathNet.Numerics.Integration

Type SimpsonRule

Namespace MathNet.Numerics.Integration

Approximation algorithm for definite integrals by Simpson's rule.

Static Functions

Public Static Functions

double IntegrateComposite(Func<double, double> f, double intervalBegin, double intervalEnd, int numberOfPartitions)

Composite N-point approximation of the definite integral in the provided interval by Simpson's rule.
Parameters
Func<double, double> f

The analytic smooth function to integrate.

double intervalBegin

Where the interval starts, inclusive and finite.

double intervalEnd

Where the interval stops, inclusive and finite.

int numberOfPartitions

Even number of composite subdivision partitions.

Return
double

Approximation of the finite integral in the given interval.

double IntegrateThreePoint(Func<double, double> f, double intervalBegin, double intervalEnd)

Direct 3-point approximation of the definite integral in the provided interval by Simpson's rule.
Parameters
Func<double, double> f

The analytic smooth function to integrate.

double intervalBegin

Where the interval starts, inclusive and finite.

double intervalEnd

Where the interval stops, inclusive and finite.

Return
double

Approximation of the finite integral in the given interval.