LangProc / langproc-2021-lab

2 stars 4 forks source link

LAB 2: How to deal with log of a negative number #85

Open IshaanReni opened 2 years ago

IshaanReni commented 2 years ago

What does the spec expect when log(-5) is entered? Are we meant to be outputting a -nan?

ALGCDG commented 2 years ago

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.