What happens when you call `Math.log(Double.NaN)` in Java?
The method throws an `IllegalArgumentException` because logarithms of `NaN` are not supported.
It looks like you might have confused this with another method that throws exceptions for invalid arguments.
Can you clarify why `Math.log()` does not throw an exception but rather returns `NaN` for `Double.NaN`?