Computes the root of a function f by bisectioning.


Updated 8 Oct 2010

View License

Computes the root of a continuous function f in the interval [a,b] by bisectioning.

For this algorithm the function values of endpoints must differ in sign.

Usage: [c,fc,err] = bisection(f,a,b,delta)

Input arguments:
f function
a left endpoint
b right endpoint
delta error tolerance
Output arguments:
c solution
Optional Output arguments:
fc function value of solution
err error estimate

Cite As

Wolfgang Putschögl (2023). Bisection (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Bisection Method Root Finding

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes