NumericalIntegration class abstract base

When it comes to analysis, the term numerical integration indicates a group of algorithms for calculating the numerical value of a definite integral on an interval.

Numerical integration algorithms compute an approximate solution to a definite integral with a certain degree of accuracy. NumericalIntegration is the direct supertype of:

  1. IntervalsIntegration, which is used for numerical integration algorithms that split the integration bounds into intervals.

  2. AdaptiveQuadrature, which uses the "adaptive quadrature" algorithm to evaluate the integral.

The function must be continuous in the [lowerBound, upperBound] interval.

Implementers

Constructors

NumericalIntegration({required String function, required double lowerBound, required double upperBound})
Creates a NumericalIntegration object.
const

Properties

function String
The function to be integrated on the given interval.
final
hashCode int
The hash code for this object.
no setteroverride
lowerBound double
The lower bound of the integral.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upperBound double
The upper bound of the integral.
final

Methods

evaluateFunction(double x) double
Evaluates the given function on the x point.
integrate() → ({List<double> guesses, double result})
Calculates the numerical value of the definite function integral between lowerBound and upperBound. Returns a Record object whose members are:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override