Click or drag to resize

IntegrateOnRectangle(FuncDouble, Double, Double, Double, Double, Double, Double, Int32) Method

Approximates a 2-dimensional definite integral using an Nth order Gauss-Legendre rule over the rectangle [a,b] x [c,d].

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double OnRectangle(
	Func<double, double, double> f,
	double invervalBeginA,
	double invervalEndA,
	double invervalBeginB,
	double invervalEndB,
	int order
)

Parameters

f  FuncDouble, Double, Double
The 2-dimensional analytic smooth function to integrate.
invervalBeginA  Double
Where the interval starts for the first (inside) integral, exclusive and finite.
invervalEndA  Double
Where the interval ends for the first (inside) integral, exclusive and finite.
invervalBeginB  Double
Where the interval starts for the second (outside) integral, exclusive and finite.
invervalEndB  Double
Where the interval ends for the second (outside) integral, exclusive and finite.
order  Int32
Defines an Nth order Gauss-Legendre rule. The order also defines the number of abscissas and weights for the rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly.

Return Value

Double
Approximation of the finite integral in the given interval.
See Also