TrapezoidalRule constructor
const
TrapezoidalRule({})
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 TrapezoidalRule({
required double lowerBound,
required double upperBound,
int intervals = 20,
}) : super(
lowerBound: lowerBound,
upperBound: upperBound,
intervals: intervals,
);