Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IshaanReni opened this issue Feb 10, 2022 · 1 comment
Open

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

IshaanReni opened this issue Feb 10, 2022 · 1 comment

Comments

@IshaanReni
Copy link

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

@ALGCDG
Copy link

ALGCDG commented Feb 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants