static public BigDecimal exp ( final MathContext mc ) { /* look it up if possible */ if ( mc . getPrecision ( ) < E . precision ( ) ) { return E . round ( mc ) ; } else { /* Instantiate a 1.0 with the requested pseudo-accuracy * and delegate the computation to the public method above. */ BigDecimal uni = scalePrec ( BigDecimal . ONE , mc . getPrecision ( ) ) ; return exp ( uni ) ; } }
The base of the natural logarithm .