FunctionMath.Integrate(Func<Double, Double, Double>, Interval<Double>, Interval<Double>) Method

Numerically integrates a function of two variables over a rectangular region.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static double Integrate(
	this Func<double, double, double> integrand,
	Interval<double> xInterval,
	Interval<double> yInterval
)

Parameters

integrand  Func<Double, Double, Double>
A delegate that represents a function of two variables that specifies the function to integrate.
xInterval  Interval<Double>
The limits of the integration region in the X direction.
yInterval  Interval<Double>
The limits of the integration region in the Y direction.

Return Value

Double
An approximation of the definite integral of integrand over a rectangle spanned by xInterval in the X direction, and yInterval in the Y direction.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Double, Double, Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also