def test_expm1():
    mp.dps = 15
    assert expm1(0) == 0
    assert expm1(3).ae(1-exp(3))
    assert expm1(inf) == inf
    assert expm1(1e-10)*1e10
    assert expm1(1e-50).ae(1e-50)
    assert (expm1(1e-10)*1e10).ae(1.00000000005)
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/tests/test_functions.py/test_expm1/swapped operands of `-`