예제 #1
0
def c_isnan(x, y):
    return rcomplex.c_isnan(x, y)
예제 #2
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)
예제 #3
0
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)