Open IshaanReni opened 2 years ago
What does the spec expect when log(-5) is entered? Are we meant to be outputting a -nan?
I think that you can assume we wont use inputs which are undefined or cannot be represented by a double. (no sqrt or log of negative numbers)
You can consider this as undefined behaviour in the specification.
What does the spec expect when log(-5) is entered? Are we meant to be outputting a -nan?