The bisection macro finds the inverse of some arbitrary function. Because it takes a user defined macro the function can be as complicated as the creation and calculation of a spline length from some value(curves) or as simple as finding an elusive angle(eleleg). Though for it to work properly the function must cross the axis and cross it only once in the initial interval supplied by the user.
The bisection method works by spliting the interval in half then finding out which half contains the desired result. This half is then used for the next interval and so on until the interval becomes so small that the midpoint value produces a result that is so close to the desired result that the difference makes little difference.