MidpointRule constructor
const
MidpointRule({})
Expects the function
to be integrated ad the integration bounds
(lowerBound
and upperBound
).
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 String function,
required double lowerBound,
required double upperBound,
int intervals = 30,
}) : super(
function: function,
lowerBound: lowerBound,
upperBound: upperBound,
intervals: intervals,
);