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

A basic accurate table generator #3975

Merged
merged 5 commits into from
Apr 11, 2024
Merged

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Apr 10, 2024

Many things to be improved, notably:

  1. Only looks for accurate values for a single function.
  2. Does an exhaustive search.
  3. Single-threaded.

#1760.

EXPECT_THAT(static_cast<double>(x),
RelativeErrorFrom(5.0 / 128.0, IsNear(3.1e-14_(1))));

// The stupid language doesn't allow printing a float in binary. So to verify
Copy link
Member

@eggrobin eggrobin Apr 11, 2024

Choose a reason for hiding this comment

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

It might be useful to write a utility that prints a float in binary, or just produces a range of bits; this test is not exactly readable, and we will probably want to do more of that sort of thing.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll need ToMathematica anyway for these Boost types, so that will be a better basis for checking the output.

@eggrobin eggrobin added the LGTM label Apr 11, 2024
@pleroy pleroy merged commit 5ad9ef8 into mockingbirdnest:master Apr 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants