integrate method
Calculates the numerical value of the definite function integral between lowerBound and upperBound. Returns a Record object whose members are:
-
a
guesses
named field, which contains the list of values generated by the algorithm on each step; -
a
result
named field, which contains the evaluation of the integral in the[a, b]
interval.
Implementation
@override
({List<double> guesses, double result}) integrate() {
final guesses = <double>[];
final result = _adaptive(lowerBound, upperBound, guesses);
return (
guesses: guesses,
result: result,
);
}