Algorithms for calculating the zero value of functions