IntegrationRules.GaussKronrod Method

Constructs a new Gauss-Kronrod quadrature rule.

Definition

Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.6
C#
public static IntegrationRule GaussKronrod(
	int n
)

Parameters

n  Int32
The number of points in the quadrature rule. Must be one of 15, 21, 31, 41, 51, or 61.

Return Value

IntegrationRule
An n point Gauss-Kronrod rule.

Remarks

Gauss-Kronrod rules combine a low order rule with a higher order rule that reuses the same nodes. This allows an estimate for the round-off error to be calculated.

The rule is valid over the interval [-1, 1].

Only rules with 15, 21, 31, 41, 51, or 61 points are supported.

See Also