def similar_values_iter(v1, v2, e=1e-06):
    """Return True if iterables v1 and v2 are nearly the same."""
    if v1 == v2:
        return True
    for v1, v2 in zip(v1, v2):
        if v1 != v2 and abs(v1 - v2) / max(abs(v1), abs(v2)) > e:
            return False
    return True
