Golang, Numerical Methods.
math.Abs(low-next) <= accuracy || math.Abs(high-next) <=accuracy{ return next, nil } if (nextFunc >0) == (lowFunc>0){ low = next } else { high = next } } return next, errors.New("regula falsi failed to converge") } goalFunc Above, I made use of an anonymous equation to implement the Regula Falsi