Golang, Numerical Methods.
i< regulaFalsiMaxIterations; i++{ highFunc,err:=goalFunc(high) if err!=nil{ return next, err } lowFunc,err:=goalgFunc(low) if err!=nil{ return next, err } next := (low*highFunc - high*lowFunc) / (highFunc - lowFunc) nextFunc, err:= goalFunc(next) if err!=nil{ return next, err } if