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