def fequal(x, y, delta=1e-6): if x == y: return True return abs(x - y) < delta