MidpointRule constructor
Expects the lowerBound
and upperBound
of the integral.
The intervals
variable represents the number of parts in which the
lowerBound, upperBound
interval has to be split by the algorithm.
Implementation
const MidpointRule({
required double lowerBound,
required double upperBound,
int intervals = 30,
}) : super(
lowerBound: lowerBound,
upperBound: upperBound,
intervals: intervals,
);