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

Raw approx bug #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Izaakwltn
Copy link
Contributor

This fixes a zero-looping bug in raw-approx-cr.

raw-approx-cr is supposed find a minimal approximation for use in arithmetic functions. It does this by adding precision until the absolute-value of the approximation is greater 4. Unfortunately, for zero, it had no threshold to stop making approximations with increasing precision, causing it to loop infinitely.

Even with the fix, approximation and comparison are inherently inexact with computable-reals, which means that raw-approx-cr and other functions have behavior that should be addressed. I'll make a separate issue for it.

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