Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def f(x, y):
     n1 = normalize(x * x)
     n2 = normalize(y * y * y)
     return ll_math.ll_math_isinf(n1 / n2)
Exemplo n.º 4
0
 def f(x, y):
     n1 = normalize(x * x)
     n2 = normalize(y * y * y)
     return ll_math.ll_math_isinf(n1 / n2)