Skip to main content
Module

x/simplestatistics/index.js>bisect

simple statistics for node & browser javascript
Go to Latest
function bisect
import { bisect } from "https://deno.land/x/simplestatistics@v7.7.5/index.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