TrapezoidalRule constructor

const TrapezoidalRule({
  1. required double lowerBound,
  2. required double upperBound,
  3. int intervals = 20,
})

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