Skip to content

Tracking Issue for erf and erfc for f16, f32, f64, f128 #136321

Open
@tgross35

Description

@tgross35

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

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

Labels

C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions