Skip to content

Conversation

alshedivat
Copy link

@alshedivat alshedivat commented May 27, 2024

when qrot[r, r] is close to 0, ruby might represent it with a small negative value (e.g., -2.8475347e-16), which results in error when passed to Math.sqrt. adding a small epsilon constant to qrot[r, r] inside Math.sqrt solves the issue.

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.

1 participant