Esempio n. 1
0
def c_isfinite(x, y):
    return rcomplex.c_isfinite(x, y)
Esempio n. 2
0
def test_isfinite():
    assert c.c_isfinite(0, 0)
    assert not c.c_isfinite(float('nan'), 0)
    assert not c.c_isfinite(float('-inf'), 0)
    assert not c.c_isfinite(0, float('nan'))
    assert not c.c_isfinite(0, float('-inf'))
Esempio n. 3
0
def test_isfinite():
    assert c.c_isfinite(0, 0)
    assert not c.c_isfinite(float("nan"), 0)
    assert not c.c_isfinite(float("-inf"), 0)
    assert not c.c_isfinite(0, float("nan"))
    assert not c.c_isfinite(0, float("-inf"))
Esempio n. 4
0
def c_isfinite(x, y):
    return rcomplex.c_isfinite(x, y)