An algorithm with guaranteed convergence for finding a zero of a function | Synapse