Package pulse.math

Class SimpsonIntegrator

    • Constructor Detail

      • SimpsonIntegrator

        public SimpsonIntegrator​(Segment bounds)
    • Method Detail

      • integrate

        public double integrate()
        Performs the integration with the Simpson's rule. Based on: https://introcs.cs.princeton.edu/java/93integration/SimpsonsRule.java.html
        Specified by:
        integrate in class AbstractIntegrator
        Returns:
        the value of the integral