from: http://martin.ankerl.com/2007/02/11/optimized-exponential-functions-for-java/ �A Fast, Compact Approximation of the Exponential Function� Nicol N. Schraudolph 1998 @param x
(final double val)
| 120 | * @param x |
| 121 | */ |
| 122 | private static double exp(final double val) { |
| 123 | final long tmp = (long) (1512775 * val + 1072632447); |
| 124 | return Double.longBitsToDouble(tmp << 32); |
| 125 | } |
| 126 | |
| 127 | private static final double estExp0 = HelperFns.exp(0.0); |
| 128 |
no outgoing calls
no test coverage detected