Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
20
venv/Lib/site-packages/scipy/special/tests/test_ndtr.py
Normal file
20
venv/Lib/site-packages/scipy/special/tests/test_ndtr.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import numpy as np
|
||||
from numpy.testing import assert_equal, assert_almost_equal
|
||||
import scipy.special as sc
|
||||
|
||||
|
||||
def test_ndtr():
|
||||
assert_equal(sc.ndtr(0), 0.5)
|
||||
assert_almost_equal(sc.ndtr(1), 0.84134474606)
|
||||
|
||||
|
||||
class TestNdtri:
|
||||
|
||||
def test_zero(self):
|
||||
assert sc.ndtri(0.5) == 0.0
|
||||
|
||||
def test_asymptotes(self):
|
||||
assert_equal(sc.ndtri([0.0, 1.0]), [-np.inf, np.inf])
|
||||
|
||||
def test_outside_of_domain(self):
|
||||
assert all(np.isnan(sc.ndtri([-1.5, 1.5])))
|
Loading…
Add table
Add a link
Reference in a new issue