Numerical integration error method for zeros of analytic functions