Example #1
0
def test_log_AccumBounds():
    assert log(AccumBounds(1, E)) == AccumBounds(0, 1)
Example #2
0
def test_AccumBounds():
    a = Symbol('a', real=True)
    assert str(AccumBounds(0, a)) == "AccumBounds(0, a)"
    assert str(AccumBounds(0, 1)) == "AccumBounds(0, 1)"
Example #3
0
def test_exp_AccumBounds():
    assert exp(AccumBounds(1, 2)) == AccumBounds(E, E**2)