Floating point binary search
Install using npm:
npm install bisect
And use as follows:
var bisect =//Find cube root of 5 to 8 decimal placesconsole
Supposing that predicate is monotone over the interval [lo,hi), finds the first occurence of where predicate is true up to a resolution of tolerance.
(c) 2013 Mikola Lysenko. MIT License