-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(float_erf)]
This is a tracking issue for the error function (erf
) and complementary error function (erfc
) in std
. These functions are provided by libm
and are also exposed in C's math.h
(reference).
Public API
// in std, for now
impl f16 {
pub fn erf(self) -> Self;
pub fn erfc(self)-> Self;
}
impl f32 {
pub fn erf(self) -> Self;
pub fn erfc(self)-> Self;
}
impl f64 {
pub fn erf(self) -> Self;
pub fn erfc(self)-> Self;
}
impl f128 {
pub fn erf(self) -> Self;
pub fn erfc(self)-> Self;
}
Steps / History
- ACP: Add
erf
anderfc
tof32
andf64
libs-team#89 - Implementation: Implement
f{16,32,64,128}::{erf,erfc}
(#![feature(float_erf)]
) #136324 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
juntyr, David-OConnor and joseluis
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.