Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simplestatistics/src/bisect.js>default

simple statistics for node & browser javascript
Latest
function default
import { default } from "https://deno.land/x/simplestatistics@v7.8.3/src/bisect.js";

Bisection method is a root-finding method that repeatedly bisects an interval to find the root.

This function returns a numerical approximation to the exact value.

Examples

bisect(Math.cos,0,4,100,0.003); // => 1.572265625

Parameters

func

input function

start
  • start of interval
end
  • end of interval
maxIterations
  • the maximum number of iterations
errorTolerance
  • the error tolerance