Bairstow Method

This function file calculates roots of polynomial using Bairstow method
254 Downloads
Updated 14 Aug 2020

View License

function [Root]=Bairstow(Coeff,initialGuess,MaxApproxError)

If a polynomial is ax^3+bx^2+cx+d=0 ,then input the coefficients in order in an vector as Coeff= [a b c d]
Input an initial guess i.e: initialGuess=-1
then input the maximum approximation error tolerance i.e: MaxApproxError=1e-9

The function will return the vector of all the roots of the polynomial.

Cite As

Md Asifuzzaman Khan (2024). Bairstow Method (https://www.mathworks.com/matlabcentral/fileexchange/79107-bairstow-method), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.3

c(4) defined 0 as a safety measure for quadratic equations

1.0.2

Syntax error fix

1.0.1

Maximum number of iteration is set to 200, you can change it according to your need or even can be given as input

1.0.0