"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mpmath/tests/test_functions.py" between
mpmath-0.19.tar.gz and mpmath-1.0.0.tar.gz

About: mpmath is a Python library for arbitrary-precision floating-point arithmetic.

test_functions.py  (mpmath-0.19):test_functions.py  (mpmath-1.0.0)
skipping to change at line 441 skipping to change at line 441
assert cot(3).ae(-7.01525255143453347) assert cot(3).ae(-7.01525255143453347)
assert sech(3).ae(0.0993279274194332078) assert sech(3).ae(0.0993279274194332078)
assert csch(3).ae(0.0998215696688227329) assert csch(3).ae(0.0998215696688227329)
assert coth(3).ae(1.00496982331368917) assert coth(3).ae(1.00496982331368917)
assert asec(3).ae(1.23095941734077468) assert asec(3).ae(1.23095941734077468)
assert acsc(3).ae(0.339836909454121937) assert acsc(3).ae(0.339836909454121937)
assert acot(3).ae(0.321750554396642193) assert acot(3).ae(0.321750554396642193)
assert asech(0.5).ae(1.31695789692481671) assert asech(0.5).ae(1.31695789692481671)
assert acsch(3).ae(0.327450150237258443) assert acsch(3).ae(0.327450150237258443)
assert acoth(3).ae(0.346573590279972655) assert acoth(3).ae(0.346573590279972655)
assert acot(0).ae(1.5707963267948966192)
assert acoth(0).ae(1.5707963267948966192j)
def test_ldexp(): def test_ldexp():
mp.dps = 15 mp.dps = 15
assert ldexp(mpf(2.5), 0) == 2.5 assert ldexp(mpf(2.5), 0) == 2.5
assert ldexp(mpf(2.5), -1) == 1.25 assert ldexp(mpf(2.5), -1) == 1.25
assert ldexp(mpf(2.5), 2) == 10 assert ldexp(mpf(2.5), 2) == 10
assert ldexp(mpf('inf'), 3) == mpf('inf') assert ldexp(mpf('inf'), 3) == mpf('inf')
def test_frexp(): def test_frexp():
mp.dps = 15 mp.dps = 15
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)