This function is used inside F11 function.
stopping(x, tol)
x
vector
tol
this is the tolerance of the infinite sum.
returns a logical value if the tolerance level is met.