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

Bug in test case for real square root function #115

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

davidsimowitz
Copy link

For the Compute the real square root problem, the test data has an incorrect entry in one of the rows. The second floating point value in the row of the tsv file is the expected square root of the first floating point value. Since the first value is 0.0 the square root for this test case cannot be 1.571727783679971e-162.

My guess is the expected square root values in the second column of test data were used to calculate the first column inputs. This caused the product to underflow to 0.0 in this one case.

@tsunghsienlee
Copy link
Collaborator

Hi @davidsimowitz ,

Thanks for finding this bug, and it is fixed and will be merged in the next release.

Copy link

@xConde xConde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been fixed.

@metopa metopa changed the base branch from master to dev December 12, 2019 09:01
@metopa
Copy link
Collaborator

metopa commented Dec 12, 2019

Hi @davidsimowitz ,

Please, apply the change against the dev branch (I've already changed the PR for you).

After that, I'll merge it

Copy link
Author

@davidsimowitz davidsimowitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for updating the PR to the dev branch.

@zorro786
Copy link

zorro786 commented Dec 14, 2019 via email

@metopa
Copy link
Collaborator

metopa commented Dec 14, 2019

@zorro786 Please, open a separate issue for this question. Do not reuse other issues, because it becomes hard to track conversations.

@metopa
Copy link
Collaborator

metopa commented Jun 7, 2020

@davidsimowitz Hi there, sorry for the long wait. I'll check this out right after I do my state exams at the end of June. I'll keep you updated :)

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

Successfully merging this pull request may close these issues.

None yet

5 participants