'Return true iff floats x and y "are close".'

def assertCloseAbs(self, x, y, eps=1e-09):

    if (abs(x) > abs(y)):
        (x, y) = (y, x)
    if (y == 0):
        return (abs(x) < eps)
    if (x == 0):
        return (abs(y) < eps)
    self.assertTrue((abs(((x - y) / y)) < eps))
