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

Ratio multiplication for large ratios #170

Closed
wants to merge 8 commits into from
Closed

Ratio multiplication for large ratios #170

wants to merge 8 commits into from

Conversation

TobiasWallner
Copy link

Adding ratio multiplication for ratios with large values.
fixes the following problem:
constexpr auto cubic_au = 1_q_au * 1_q_au * 1_q_au;
The relative error of the result is within 8.5E-8%

@mpusz
Copy link
Owner

mpusz commented Oct 2, 2020

I am puzzled and do not know what to do with this PR. As I stated #169 we cannot afford any precision loss in ratio arithmetic. This PR even if it fixes some of our arithmetic it also adds data truncation...

@TobiasWallner
Copy link
Author

working on a new one without information loss ... will take a while

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.

2 participants