java.lang.Object
de.tilman_neumann.jml.transcendental.Exp

public class Exp
extends java.lang.Object
Implementation of the exponential function for big decimals.
  • Constructor Summary

    Constructors
    Constructor Description
    Exp()  
  • Method Summary

    Modifier and Type Method Description
    static java.math.BigDecimal exp​(java.math.BigDecimal x, Precision outPrec)  
    static java.math.BigDecimal exp​(java.math.BigDecimal w, Scale outScale)
    Compute exp(w) using a more powerful argument reduction.
    static void main​(java.lang.String[] argv)
    Test.

    Methods inherited from class java.lang.Object

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

    • Exp

      public Exp()
  • Method Details

    • exp

      public static java.math.BigDecimal exp​(java.math.BigDecimal x, Precision outPrec)
    • exp

      public static java.math.BigDecimal exp​(java.math.BigDecimal w, Scale outScale)
      Compute exp(w) using a more powerful argument reduction. This function uses the transform exp(w)=exp(x)^(2^K) with x=w*2^(-K). This way, we can bring the argument to develop in a power series arbitrarily near to 0 with very high convergence speed.
      Parameters:
      w - argument
      outScale - wanted precision in after-floating point decimal digits
      Returns:
      exp(w)
    • main

      public static void main​(java.lang.String[] argv)
      Test.
      Parameters:
      argv - ignored