"Fossies" - the Fresh Open Source Software Archive  

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

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

test_functions2.py  (mpmath-0.18):test_functions2.py  (mpmath-0.19)
skipping to change at line 1436 skipping to change at line 1436
assert spherharm(-6, 3, 0.5, 0.25).ae(-0.16544349818782275459 - 0.1541265772 3253924562j) assert spherharm(-6, 3, 0.5, 0.25).ae(-0.16544349818782275459 - 0.1541265772 3253924562j)
assert spherharm(-6, 1.5, 0.5, 0.25).ae(0.032208193499767402477 + 0.01267800 0924063664921j) assert spherharm(-6, 1.5, 0.5, 0.25).ae(0.032208193499767402477 + 0.01267800 0924063664921j)
assert spherharm(3,0,0,1).ae(0.74635266518023078283) assert spherharm(3,0,0,1).ae(0.74635266518023078283)
assert spherharm(3,-2,0,1) == 0 assert spherharm(3,-2,0,1) == 0
assert spherharm(3,-2,1,1).ae(-0.16270707338254028971 - 0.355521441375467770 97j) assert spherharm(3,-2,1,1).ae(-0.16270707338254028971 - 0.355521441375467770 97j)
def test_qfunctions(): def test_qfunctions():
mp.dps = 15 mp.dps = 15
assert qp(2,3,100).ae('2.7291482267247332183e2391') assert qp(2,3,100).ae('2.7291482267247332183e2391')
def test_issue199(): def test_issue_239():
mp.prec = 150 mp.prec = 150
x = ldexp(2476979795053773,-52) x = ldexp(2476979795053773,-52)
assert betainc(206, 385, 0, 0.55, 1).ae('0.999999999999999999999965709106448 57895771110649954') assert betainc(206, 385, 0, 0.55, 1).ae('0.999999999999999999999965709106448 57895771110649954')
mp.dps = 15 mp.dps = 15
try: try:
u = hyp2f1(-5,5,0.5,0.5) u = hyp2f1(-5,5,0.5,0.5)
raise AssertionError("hyp2f1(-5,5,0.5,0.5) (failed zero detection)") raise AssertionError("hyp2f1(-5,5,0.5,0.5) (failed zero detection)")
except (mp.NoConvergence, ValueError): except (mp.NoConvergence, ValueError):
pass pass
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS