Class BoostMath


  • final class BoostMath
    extends java.lang.Object
    Math functions used by the Boost functions.

    This code has been adapted from the Boost c++ implementations in <boost/math/special_functions/>. All work is copyright John Maddock 2006 and subject to the Boost Software License.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BoostMath()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static double powm1​(double x, double y)
      Returns pow(x, y) - 1.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoostMath

        private BoostMath()
        Private constructor.
    • Method Detail

      • powm1

        static double powm1​(double x,
                            double y)
        Returns pow(x, y) - 1. This function is accurate when x -> 1 or y is small.

        Adapted from boost/math/special_functions/powm1.hpp. Explicit handling of edges cases (overflow, domain error) using the policy has been removed.

        Parameters:
        x - the x
        y - the y
        Returns:
        pow(x, y) - 1