MCPcopy Create free account
hub / github.com/TheAlgorithms/C / bisection

Function bisection

numerical_methods/bisection_method.c:58–85  ·  view source on GitHub ↗

* @brief Root-finding method for a continuous function given two values with * opposite signs * @param x_left Lower endpoint value of the interval * @param x_right Upper endpoint value of the interval * @param tolerance Error threshold * @returns `root of the function` if bisection method succeed within the * maximum number of iterations * @returns `-1` if bisection method fails */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls 2

signFunction · 0.85
funcFunction · 0.70

Tested by

no test coverage detected