Skip to content

fix: ExpHullAbrham returns the requested number of significant figures for large inputs - #470

Merged
mwoss merged 1 commit into
masterfrom
fix/exphullabrham-precision
Oct 17, 2026
Merged

mwoss merged 1 commit into
masterfrom
fix/exphullabrham-precision

Conversation

@mwoss

@mwoss mwoss commented Oct 17, 2026

Copy link
Copy Markdown
Member

ExpHullAbrham raises its working precision for large inputs, but it also rounded the result to that raised precision, so it returned more significant figures than asked. For example, exp(23.31) at precision 1 returned 13000000000 instead of 10000000000, and exp(50) at precision 2 returned 5.18e21 instead of 5.2e21.

It now rounds to the requested precision, at least 1, so precision 0 behaves as before.

Checked against exp computed with big.Float at 600 bits: none of 33,759 cases returns extra digits anymore. Follow-up to #429.

@mwoss
mwoss merged commit 4fef1ec into master Oct 17, 2026
7 checks passed
@mwoss
mwoss deleted the fix/exphullabrham-precision branch October 17, 2026 19:32
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