Improve accuracy of asinh and acosh#104553
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @m-ou-se (or someone else) soon. Please see the contribution instructions for more information. |
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
I'm somewhat surprised we aren't just calling into OS-provided functions here, but I guess those may not be in all platform libms. Either way I don't mind approving this (I think @m-ou-se is fairly busy, sorry if you wanted to review tho), since these implementations are clearly mathematically equivalent to the old versions, and to the abstract definitions of these functions. @bors r+ |
Rollup of 8 pull requests Successful merges: - rust-lang#104001 (Improve generating Custom entry function) - rust-lang#104411 (nll: correctly deal with bivariance) - rust-lang#104528 (Properly link `{Once,Lazy}{Cell,Lock}` in docs) - rust-lang#104553 (Improve accuracy of asinh and acosh) - rust-lang#104554 (Use `ErrorGuaranteed::unchecked_claim_error_was_emitted` less) - rust-lang#104566 (couple of clippy::perf fixes) - rust-lang#104575 (deduplicate tests) - rust-lang#104580 (diagnostics: only show one suggestion for method -> assoc fn) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This PR addresses the inaccuracy of
asinhandacoshidentified by the Herbie tool, @pavpanchekha, @finnbear in #104548. It also adds a couple tests that failed in the existing implementations and now pass.Closes #104548
r? rust-lang/libs