コード例 #1
0
def c_isnan(x, y):
    return rcomplex.c_isnan(x, y)
コード例 #2
0
ファイル: test_rcomplex.py プロジェクト: cimarieta/usp
def test_isnan():
    assert not c.c_isnan(0, 0)
    assert c.c_isnan(float("nan"), 0)
    assert c.c_isnan(1, float("nan"))
    assert not c.c_isnan(float("inf"), 0)
コード例 #3
0
ファイル: interp_cmath.py プロジェクト: mozillazg/pypy
def c_isnan(x, y):
    return rcomplex.c_isnan(x,y)
コード例 #4
0
def test_isnan():
    assert not c.c_isnan(0, 0)
    assert c.c_isnan(float('nan'), 0)
    assert c.c_isnan(1, float('nan'))
    assert not c.c_isnan(float('inf'), 0)