false_position

kgpy.optimization.root_finding.scalar.false_position(func, bracket_min, bracket_max, max_abs_error=1e-09, max_iterations=100)

The false position method (often known by its latin name, regula falsi) is a bracketed root-finding method that uses linear interpolation to iteratively approximate the root of a nonlinear function. This implementation is based on the wikipedia page.

Parameters:
Returns:

Root of the function

Return type:

ndarray

Raises:

ValueError – If the number of iterations is exceeded and ::max_abs_error has not been reached.