Esempio n. 1
0
def c_isnan(x, y):
    return rcomplex.c_isnan(x, y)
Esempio n. 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)
Esempio n. 3
0
def c_isnan(x, y):
    return rcomplex.c_isnan(x,y)
Esempio n. 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)