IntegrationRules.GaussLegendre Method

Constructs a new Gauss-Legendre quadrature rule.

Definition

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

Parameters

n  Int32
The number of points in the quadrature rule.

Return Value

SimpleIntegrationRule
A Gauss-Legendre quadrature rule of order n.

Remarks

Gauss-Legendre rules are a form of Gaussian quadrature based on Legendre polynomials.

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

See Also