roots.py

Created by vnap0v

Created on December 21, 2025

5.98 KB

Numerically find multiple roots of a function.

As described in NUMERICAL METHODS FOR ENGINEERS 8th Edition

  • Incremental search for sign changes of function adapted from pseudocode on page 142

  • Combined with Modified False Position root finding method adapted from pseudocode on page 141

This code allows the user to enter a function of x and an interval on the x-axis.

The interval is searched for sign changes, these points are further refined yielding the roots using modified false position.


During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.