compute secant with threshold + secant with threshold and iteration