Class BoostMath

java.lang.Object
org.apache.commons.numbers.gamma.BoostMath

final class BoostMath extends 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 Details

    • BoostMath

      private BoostMath()
      Private constructor.
  • Method Details

    • 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