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

Fix for negative sqrt silently failing #82

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Fix for negative sqrt silently failing #82

merged 1 commit into from
Jul 23, 2024

Conversation

dlangenk
Copy link
Member

fixes #35

It looks like the 3 points in #35 are too close to each other to be valid and thus the input to the sqrt becomes practically zero, but with a negative sign. I added an if to not evaluate this further and throw an error instead.

Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Thanks!

@mzur mzur merged commit c28b7ea into master Jul 23, 2024
2 checks passed
@mzur mzur deleted the fixNegativeSqrtInp branch July 23, 2024 08:54
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.

Fatal error with area NaN
2 participants