Skip to content

Raw approx bug#14

Open
Izaakwltn wants to merge 3 commits intostylewarning:masterfrom
Izaakwltn:raw-approx-bug
Open

Raw approx bug#14
Izaakwltn wants to merge 3 commits intostylewarning:masterfrom
Izaakwltn:raw-approx-bug

Conversation

@Izaakwltn
Copy link
Copy Markdown
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