Skip to content

Muller's Method

Oscar Veliz edited this page Jan 4, 2021 · 13 revisions

Muller's Method video

The video for Muller's Method can be found here https://youtu.be/XIIEjwtkONc. Example code is given in the Muller.py file, written in Python, which finds the roots of the function f(x) = x^3 - x^2 - x - 1 using the starting points 0, 1, and 2. If you would like to alter the starting points change:

xnm2 = 0  
xnm1 = 1  
xn = 2  
#xnm2 = -2  
#xnm1 = -1  
#xn = 0  

to

#xnm2 = 0  
#xnm1 = 1  
#xn = 2  
xnm2 = -2  
xnm1 = -1  
xn = 0  

You can execute the program online via CodingGround. To run the program locally have Python installed then type python Muller.py in the terminal in the directory where Muller.py is saved. If you'd rather not use the terminal use an IDE like Geany to open and run the program.

References: