The Wayback Machine - https://web.archive.org/web/20200701191308/https://github.com/stdlib-js/stdlib/issues/222
Skip to content
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

RFC: Add support for computing the reciprocal cube root (rcbrt) #222

Open
kgryte opened this issue Oct 23, 2018 · 1 comment
Open

RFC: Add support for computing the reciprocal cube root (rcbrt) #222

kgryte opened this issue Oct 23, 2018 · 1 comment

Comments

@kgryte
Copy link
Member

@kgryte kgryte commented Oct 23, 2018

Checklist

Please ensure the following tasks are completed before submitting a feature request.

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Description

Description of the feature request.

This RFC proposes adding support for computing the reciprocal cube root (i.e., 1/cbrt(x)). The implementation is trivial:

/**
* @param {number} x - input value
* @returns {number} reciprocal cube root
*/
function rcbrt( x ) {
    return 1.0 / cbrt( x );
}

The rationale behind providing this API is to provide a declarative interface, rather than imperatively writing out the intended behavior. As the implementation is small, modern compilers should readily inline the implementation, thus not affecting performance if used within other implementations.

Package: @stdlib/math/base/special/rcbrt
Alias: rcbrt.

Related Issues

Does this feature request have any related issues?

No.

Questions

Any questions for reviewers?

No.

Other

Any other information relevant to this feature request? This may include screenshots, references, sample output, and/or implementation notes.

No.

@kgryte kgryte changed the title Add support for computing the reciprocal cube root RFC: Add support for computing the reciprocal cube root Oct 23, 2018
@kgryte kgryte added the rfc label Oct 23, 2018
@kgryte kgryte changed the title RFC: Add support for computing the reciprocal cube root RFC: Add support for computing the reciprocal cube root (rcbrt) Oct 23, 2018
@kgryte kgryte added this to Backlog in Features Oct 25, 2018
@kgryte
Copy link
Member Author

@kgryte kgryte commented Feb 13, 2019

@MatthewCochrane Would you be interested in tackling this RFC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.