-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Tracking Issue for erf
and erfc
for f16, f32, f64, f128
#136321
Comments
If anyone is interested in adding these, feel free to do so. The extern functions need to be added at https://github.com/rust-lang/rust/blob/6ac88786155774da429213a1362d4cb085047af3/library/std/src/sys/cmath.rs, then the API at https://github.com/rust-lang/rust/blob/6ac88786155774da429213a1362d4cb085047af3/library/std/src/f64.rs (and other float files) will call them, similar to @rustbot label +E-easy |
The signatures look very wrong. I guess the functions in A less trivial question is, shouldn't they all take Anyways, don't mind if I do, |
Oh woah yeah, I was looking at math.h and confused myself on the signatures. Updated. |
As I mentioned in the other ACP (rust-lang/libs-team#352), stabilization of |
Hi, could I take a stab at this? Would be happy to help out where needed |
@GrigorenkoPV already has a PR up at #136324 (commenting |
Great thanks a lot @tgross35 |
Feature gate:
#![feature(float_erf)]
This is a tracking issue for the error function (
erf
) and complementary error function (erfc
) instd
. These functions are provided bylibm
and are also exposed in C'smath.h
(reference).Public API
Steps / History
erf
anderfc
tof32
andf64
libs-team#89f{16,32,64,128}::{erf,erfc}
(#![feature(float_erf)]
) #136324Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: