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

Slight innacuracy in Log2 implementation in math/math.hpp (loss of precision?) #479

Open
emilydolson opened this issue Mar 9, 2023 · 0 comments

Comments

@emilydolson
Copy link
Collaborator

When using the implementation of log2 in the standard cmath library, log2(0.166667) returns -2.58496. Using Empirical's Log2 function Log2(0.166667), however, returns -2.58532. Seems like it's some sort of minor loss of precision error, but could still lead to substantial inaccuracies over time. I assume this is due to some sort of loss of precision error somewhere, but I can't see where.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant