def test_isinf(self): inf = 1e200 * 1e200 nan = inf / inf assert not ll_math.ll_math_isinf(0) assert ll_math.ll_math_isinf(inf) assert ll_math.ll_math_isinf(-inf) assert not ll_math.ll_math_isinf(nan)
def f(x, y): n1 = normalize(x * x) n2 = normalize(y * y * y) return ll_math.ll_math_isinf(n1 / n2)