5481c313634e67ed43d0f4ee2da6a272d703cee2,scipy/special/tests/test_basic.py,TestRiccati,test_riccati_yn,#TestRiccati#,3076
Before Change
assert_array_almost_equal(ricjn,jnrl,8)
def test_riccati_yn(self):
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
ynrl = (special.sph_yn(1,.2)[0]*.2,special.sph_yn(1,.2)[0]+special.sph_yn(1,.2)[1]*.2)
ricyn = special.riccati_yn(1,.2)
assert_array_almost_equal(ricyn,ynrl,8)
After Change
def test_riccati_yn(self):
N, x = 2, 0.2
C = np.empty((N, N))
for n in range(N):
y = special.spherical_yn(n, x)
yp = special.spherical_yn(n, x, derivative=True)
C[0,n] = x*y
C[1,n] = x*yp + y
assert_array_almost_equal(C, special.riccati_yn(n, x), 8)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: scipy/scipy
Commit Name: 5481c313634e67ed43d0f4ee2da6a272d703cee2
Time: 2017-07-14
Author: person142@users.noreply.github.com
File Name: scipy/special/tests/test_basic.py
Class Name: TestRiccati
Method Name: test_riccati_yn
Project Name: nipy/dipy
Commit Name: d9105d5d9bccb2dc04cc410a4e8d31e9de18efc7
Time: 2014-06-25
Author: arokem@gmail.com
File Name: dipy/reconst/dti.py
Class Name: TensorFit
Method Name: predict
Project Name: scipy/scipy
Commit Name: 5481c313634e67ed43d0f4ee2da6a272d703cee2
Time: 2017-07-14
Author: person142@users.noreply.github.com
File Name: scipy/special/tests/test_basic.py
Class Name: TestRiccati
Method Name: test_riccati_jn