コード例 #1
0
ファイル: test_ll_math.py プロジェクト: Debug-Orz/Sypy
 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)
コード例 #2
0
ファイル: test_ll_math.py プロジェクト: njues/Sypy
 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)
コード例 #3
0
ファイル: test_ll_math.py プロジェクト: Debug-Orz/Sypy
 def f(x, y):
     n1 = normalize(x * x)
     n2 = normalize(y * y * y)
     return ll_math.ll_math_isinf(n1 / n2)
コード例 #4
0
ファイル: test_ll_math.py プロジェクト: njues/Sypy
 def f(x, y):
     n1 = normalize(x * x)
     n2 = normalize(y * y * y)
     return ll_math.ll_math_isinf(n1 / n2)