Class DoubleExponential

    • Constructor Detail

      • DoubleExponential

        public DoubleExponential​(UnivariateRealFunction f,
                                 double a,
                                 double b,
                                 double c)
        Construct a DoubleExponential substitution rule by trying to automatically determine the substitution rule.
        Parameters:
        f - the integrand
        a - the lower limit
        b - the upper limit
        c - a constant; usually either 0 or 0.5 * PI
    • Method Detail

      • ta

        public double ta()
        Get the lower limit of the integral. The accuracy of using the double exponential transformation lies in choosing the correct region of t for integration. It is very hard to determine the region without knowing about the function, such as where the singularities are. If the region of t is known, override this function.
        Specified by:
        ta in interface SubstitutionRule
        Returns:
        the lower limit
      • tb

        public double tb()
        Get the upper limit of the integral. The accuracy of using the double exponential transformation lies in choosing the correct region of t for integration. It is very hard to determine the region without knowing about the function, such as where the singularities are. If the region of t is known, override this function.
        Specified by:
        tb in interface SubstitutionRule
        Returns:
        the upper limit