Skip to content

Use more decimals for Pi in angle conversions #54

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hernando
Copy link

@hernando hernando commented Feb 27, 2023

The previous value had twelve signficant digits which is quite below the maximum precision of double floating numbers.
In this change the value returned by Python for the expression math.pi * 2 is used. This value is the same as the one returned by std::cos(-1) * 2 with 16 significant digits.

The previous value had twelve signficant digits which is quite below
the maximum precision of double floating numbers.
In this change the value returned by Python for the expression
math.pi * 2 is used. This value is the same returned by
std::cos(-1) * 2 with 16 significant digits.
@hernando
Copy link
Author

I didn't try running the tests because the set up doesn't look straight forward and the tolerances used for comparison in test_trig.cpp are rather large. I didn't find any mention of degree or gradian elsewhere in the tests.

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