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