
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
cubic-roots
Advanced tools
Implementation of Kahan's cubic root finder.
According to Kahan, standard cubic root finders based on classical methods are prone to numerical inaccuracies. This is an implementation of a numerically stable method illustrated in Kahan's notes titled "To Solve a Real Cubic Equation".
The notes can be found here: http://people.eecs.berkeley.edu/~wkahan/Math128/Cubic.pdf.
The quadratic equation solved is Ax2 + Bx + C = 0. The cubic equation solved is Ax3 + Bx2 + Cx + D = 0.
Algorithm and pseudocode by William Kahan. Implementation in Javascript by Tim Bright
(c) Tim Bright, 2017. MIT License.
FAQs
Implementation of Kahan's cubic root finder.
The npm package cubic-roots receives a total of 334 weekly downloads. As such, cubic-roots popularity was classified as not popular.
We found that cubic-roots demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.