def test_sinc():
    assert sinc(0) == sincpi(0) == 1
    assert sinc(inf) == sincpi(inf) == 0
    assert sinc(-inf) == sincpi(-inf) == 0
    assert sinc(2).ae(0.45464871341284084770)
    assert sinc(2+3j).ae(2.7539470277436474940j-0.4463290318402435457)
    assert sincpi(2) == 0
    assert sincpi(1.5).ae(-0.212206590789193781)
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/tests/test_functions.py/test_sinc/swapped operands of `-`