SimpsonRule constructor

const SimpsonRule({
  1. required String function,
  2. required double lowerBound,
  3. required double upperBound,
  4. int intervals = 32,
})

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,
      );