Golang, Numerical Methods.
Conversely, if x new has the same sign as x high, we set x high to the value of x new. Code import ( "math" "github.com/pkg/errors" ) const ( maxIterations = 20 accuracy = 1E-7 ) func regulaFalsi(goalFunc func(float64)(float, error), low, high float64) (float64, error){ var next float64 for i:=0;