npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hybridroots

v1.0.0

Published

Four novel multi-phase hybrid bracketing algorithms (Opt.BF, Opt.BFMS, Opt.TF, Opt.TFMS) for numerical root finding with superior convergence. Combines bisection/trisection, false position, and modified secant. Reference DOI: 10.21608/joems.2026.440115.10

Readme

HybridRoots (JavaScript / Node.js Port)

Four Multi-Phase Hybrid Bracketing Algorithms for Numerical Root Finding

A JavaScript/TypeScript compatible library implementing four novel root-finding algorithms that combine bisection/trisection, false position, and modified secant methods for efficient, reliable nonlinear equation solving.

Why HybridRoots is Powerful

Classical root-finding algorithms face a tradeoff: methods like Bisection are 100% reliable but slow (averaging >40 iterations), while methods like Secant or Newton-Raphson are fast but can fail to converge or shoot out of bounds.

HybridRoots solves this by introducing multi-phase bracketing:

  1. Guaranteed Convergence: It maintains a strict bracket [a, b] where f(a) * f(b) < 0 at all times.
  2. Superior Speed: By combining Trisection, False Position, and an adaptive Modified Secant step, it drastically reduces the search space. The mptfms algorithm converges in an average of just 2.33 iterations across 48 complex benchmark functions.

The Algorithms

  • Opt.BFMS (mpbfms): Bisection + False Position + Modified Secant (Avg 2.69 iterations)
  • Opt.TFMS (mptfms): Trisection + False Position + Modified Secant (Avg 2.33 iterations)
  • Opt.BF (mpbf): Bisection + False Position (Avg 6.58 iterations)
  • Opt.TF (mptf): Trisection + False Position (Avg 5.19 iterations)

Installation

npm install hybridroots

Usage

import { mptfms } from 'hybridroots';

// Find root of x^3 - x - 2 in interval [1.0, 2.0] using Opt.TFMS
const result = mptfms(x => x**3 - x - 2, 1.0, 2.0);

console.log(`Root: ${result.root}`);
console.log(`Iterations: ${result.iterations}`);
console.log(`Converged: ${result.converged}`);

Citation

If you use this package in your research, please cite:

@article{ellithy2026hybrid,
  title={Four New Multi-Phase Hybrid Bracketing Algorithms for Numerical Root Finding},
  author={Ellithy, Abdelrahman},
  journal={Journal of the Egyptian Mathematical Society},
  volume={34},
  year={2026},
  publisher={National Information and Documentation Centre (NIDOC), Academy of Scientific Research and Technology, ASRT}
}