Returns the base 2 logarithm of a double value. Special cases: If x is NaN or less than zero, the result is NaN. If x is positive infinity, the result is positive infinity. If x is positive or negative zero, the result is negative infinity. The
(double x)
| 213 | |
| 214 | |
| 215 | public static double log2(double x) { |
| 216 | return log(x) / LN_2; // surprisingly within 1 ulp according to tests |
| 217 | } |
| 218 | |
| 219 | private static final double LN_2 = log(2); |
| 220 |
nothing calls this directly
no test coverage detected