Skip to content

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