IndefiniteIntegral

A trapezoidal approximation of a function as a stand-in for an unknown indefinite integral. This approximation is only defined on positive values of x, if you wish to approximate a negative domain you must use an inverted evaluation function, and the absolute values of evaluation parameters.

Constructors

IndefiniteIntegral

#
public IndefiniteIntegral(
function,
tolerance
)

Fields

MaximumParameter

#
public const int MaximumParameter = 214748364

Properties

Function

#
Function being approximated.
public Func<double, double> Function { get; }

MaxedOut

#
Gets whether the integral has maxed out. Any cumulative area magnitude over 1e12 is assumed to hold forever.
public bool MaxedOut { get; }

SampleCount

#
public long SampleCount { get; }

Tolerance

#
Tolerance per parameter unit.
public double Tolerance { get; }

Methods

IntegralAt

#
Evaluate the integral at the given parameter.
public double IntegralAt(
x
Parameters. For any non-positive x this method return zero.
)