Click or drag to resize
Accord.NET (logo)

TrapezoidalRule Constructor (Int32, Func< Double, Double> , Double, Double)

Constructs a new TrapezoidalRule integration method.

Namespace:  Accord.Math.Integration
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public TrapezoidalRule(
	int steps,
	Func<double, double> function,
	double a,
	double b
)
Request Example View Source

Parameters

steps
Type: System.Int32
The number of steps into which the integration interval will be divided.
function
Type: System.Func<Double, Double>
The unidimensional function whose integral should be computed.
a
Type: System.Double
The beginning of the integration interval.
b
Type: System.Double
The ending of the integration interval.
See Also