284023e2cd352a8a5d0655f007ab41747b5d3456,scipy/special/tests/test_basic.py,TestTrigonometric,test_sinc,#TestTrigonometric#,1157

Before Change


        assert_almost_equal(special.cotdg(765), 1.0, 14)

    def test_sinc(self):
        c = arange(-2,2,.1)
        y = special.sinc(c)
        yre = sin(pi*c)/(pi*c)
        yre[20] = 1.0
        assert_array_almost_equal(y, yre, 4)

        // Regression test for ticket 1751.

After Change


    def test_sinc(self):
        // the sinc implementation and more extensive sinc tests are in numpy
        assert_array_equal(special.sinc([0]), 1)
        assert_equal(special.sinc(0.0), 1.0)

    def test_sindg(self):
        sn = special.sindg(90)
        assert_equal(sn,1.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 284023e2cd352a8a5d0655f007ab41747b5d3456
Time: 2013-12-28
Author: argriffi@ncsu.edu
File Name: scipy/special/tests/test_basic.py
Class Name: TestTrigonometric
Method Name: test_sinc


Project Name: epfl-lts2/pygsp
Commit Name: 508545f2c9a982a38a243ec95c7a5cdd266ed358
Time: 2017-11-23
Author: michael.defferrard@epfl.ch
File Name: pygsp/tests/test_graphs.py
Class Name: TestCase
Method Name: test_degree


Project Name: scipy/scipy
Commit Name: b5dea8df42762347a01ced502ae1941b406d2041
Time: 2017-04-16
Author: evgeny.burovskiy@gmail.com
File Name: scipy/interpolate/tests/test_interpolate.py
Class Name: TestInterp1D
Method Name: test_slinear_dtypes