[RFC]: add support for computing the complementary error function for single-precision floating-point numbers
- Ngôn ngữ chính
- JavaScript
- Star
- 6k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 611
Mô tả
### Description
This RFC proposes adding support for computing the complementary error function for single-precision floating-point numbers.
The package is the single-precision analogue to `@stdlib/math/base/special/erfc`. Similar to that package, we can base our implementation on [msun](https://svnweb.freebsd.org/base/release/12.2.0/lib/msun/src/s_erff.c?view=markup). The implementations for both JavaScript and C should follow the reference implementation.
For the JavaScript implementation, we'll need to make sure that we emulate `float32` arithmetic by wrapping operation results with `float64ToFloat32`. This will mean noticeable performance degradation in JavaScript, but will ensure that the JavaScript and C implementations produce the same results.
Package: `@stdlib/math/base/special/erfcf`
Alias: `erfcf`
### Related Issues
None.
### Questions
No.
### Other
No.
### Checklist
- [X] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with `RFC:`.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.