Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
numpy /
lib /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
test__datasource.py
9.91
KB
-rw-r--r--
2013-04-07 01:04
test__datasource.pyc
15.95
KB
-rw-r--r--
2018-04-10 19:40
test__datasource.pyo
15.95
KB
-rw-r--r--
2018-04-10 19:40
test__iotools.py
13.12
KB
-rw-r--r--
2013-04-07 01:04
test__iotools.pyc
14.4
KB
-rw-r--r--
2018-04-10 19:40
test__iotools.pyo
14.4
KB
-rw-r--r--
2018-04-10 19:40
test_arraypad.py
23.84
KB
-rw-r--r--
2013-04-07 01:04
test_arraypad.pyc
29.81
KB
-rw-r--r--
2018-04-10 19:40
test_arraypad.pyo
29.81
KB
-rw-r--r--
2018-04-10 19:40
test_arraysetops.py
7.52
KB
-rw-r--r--
2013-04-07 01:04
test_arraysetops.pyc
7.88
KB
-rw-r--r--
2018-04-10 19:40
test_arraysetops.pyo
7.88
KB
-rw-r--r--
2018-04-10 19:40
test_arrayterator.py
1.4
KB
-rw-r--r--
2013-04-07 01:04
test_arrayterator.pyc
1.98
KB
-rw-r--r--
2018-04-10 19:40
test_arrayterator.pyo
1.98
KB
-rw-r--r--
2018-04-10 19:40
test_financial.py
5.32
KB
-rw-r--r--
2013-04-07 01:04
test_financial.pyc
6.21
KB
-rw-r--r--
2018-04-10 19:40
test_financial.pyo
6.21
KB
-rw-r--r--
2018-04-10 19:40
test_format.py
25.04
KB
-rw-r--r--
2013-04-07 01:04
test_format.pyc
25
KB
-rw-r--r--
2018-04-10 19:40
test_format.pyo
25
KB
-rw-r--r--
2018-04-10 19:40
test_function_base.py
50.27
KB
-rw-r--r--
2013-04-07 01:04
test_function_base.pyc
72.44
KB
-rw-r--r--
2018-04-10 19:40
test_function_base.pyo
72.44
KB
-rw-r--r--
2018-04-10 19:40
test_index_tricks.py
8.98
KB
-rw-r--r--
2013-04-07 01:04
test_index_tricks.pyc
12.25
KB
-rw-r--r--
2018-04-10 19:40
test_index_tricks.pyo
12.25
KB
-rw-r--r--
2018-04-10 19:40
test_io.py
59.81
KB
-rw-r--r--
2013-04-07 01:04
test_io.pyc
73.17
KB
-rw-r--r--
2018-04-10 19:40
test_io.pyo
73.17
KB
-rw-r--r--
2018-04-10 19:40
test_polynomial.py
4.41
KB
-rw-r--r--
2013-04-07 01:04
test_polynomial.pyc
6.1
KB
-rw-r--r--
2018-04-10 19:40
test_polynomial.pyo
6.1
KB
-rw-r--r--
2018-04-10 19:40
test_recfunctions.py
27.93
KB
-rw-r--r--
2013-04-07 01:04
test_recfunctions.pyc
35.45
KB
-rw-r--r--
2018-04-10 19:40
test_recfunctions.pyo
35.45
KB
-rw-r--r--
2018-04-10 19:40
test_regression.py
8.02
KB
-rw-r--r--
2013-04-07 01:04
test_regression.pyc
13.26
KB
-rw-r--r--
2018-04-10 19:40
test_regression.pyo
13.26
KB
-rw-r--r--
2018-04-10 19:40
test_shape_base.py
9.92
KB
-rw-r--r--
2013-04-07 01:04
test_shape_base.pyc
15.89
KB
-rw-r--r--
2018-04-10 19:40
test_shape_base.pyo
15.89
KB
-rw-r--r--
2018-04-10 19:40
test_stride_tricks.py
6.79
KB
-rw-r--r--
2013-04-07 01:04
test_stride_tricks.pyc
8.92
KB
-rw-r--r--
2018-04-10 19:40
test_stride_tricks.pyo
8.92
KB
-rw-r--r--
2018-04-10 19:40
test_twodim_base.py
11.38
KB
-rw-r--r--
2013-04-07 01:04
test_twodim_base.pyc
15.93
KB
-rw-r--r--
2018-04-10 19:40
test_twodim_base.pyo
15.93
KB
-rw-r--r--
2018-04-10 19:40
test_type_check.py
10.33
KB
-rw-r--r--
2013-04-07 01:04
test_type_check.pyc
18.71
KB
-rw-r--r--
2018-04-10 19:40
test_type_check.pyo
18.71
KB
-rw-r--r--
2018-04-10 19:40
test_ufunclike.py
1.88
KB
-rw-r--r--
2013-04-07 01:04
test_ufunclike.pyc
3.33
KB
-rw-r--r--
2018-04-10 19:40
test_ufunclike.pyo
3.33
KB
-rw-r--r--
2018-04-10 19:40
test_utils.py
920
B
-rw-r--r--
2013-04-07 01:04
test_utils.pyc
2.13
KB
-rw-r--r--
2018-04-10 19:40
test_utils.pyo
2.13
KB
-rw-r--r--
2018-04-10 19:40
Save
Rename
from numpy.testing import * import numpy as np class TestFinancial(TestCase): def test_rate(self): assert_almost_equal(np.rate(10,0,-3500,10000), 0.1107, 4) def test_irr(self): v = [-150000, 15000, 25000, 35000, 45000, 60000] assert_almost_equal(np.irr(v), 0.0524, 2) def test_pv(self): assert_almost_equal(np.pv(0.07,20,12000,0), -127128.17, 2) def test_fv(self): assert_almost_equal(np.fv(0.075, 20, -2000,0,0), 86609.36, 2) def test_pmt(self): assert_almost_equal(np.pmt(0.08/12,5*12,15000), -304.146, 3) def test_ppmt(self): np.round(np.ppmt(0.1/12,1,60,55000),2) == 710.25 def test_ipmt(self): np.round(np.ipmt(0.1/12,1,24,2000),2) == 16.67 def test_nper(self): assert_almost_equal(np.nper(0.075,-2000,0,100000.), 21.54, 2) def test_nper2(self): assert_almost_equal(np.nper(0.0,-2000,0,100000.), 50.0, 1) def test_npv(self): assert_almost_equal(np.npv(0.05,[-15000,1500,2500,3500,4500,6000]), 117.04, 2) def test_mirr(self): val = [-4500,-800,800,800,600,600,800,800,700,3000] assert_almost_equal(np.mirr(val, 0.08, 0.055), 0.0666, 4) val = [-120000,39000,30000,21000,37000,46000] assert_almost_equal(np.mirr(val, 0.10, 0.12), 0.126094, 6) val = [100,200,-50,300,-200] assert_almost_equal(np.mirr(val, 0.05, 0.06), 0.3428, 4) val = [39000,30000,21000,37000,46000] assert_(np.isnan(np.mirr(val, 0.10, 0.12))) def test_when(self): #begin assert_almost_equal(np.rate(10,20,-3500,10000,1), np.rate(10,20,-3500,10000,'begin'), 4) #end assert_almost_equal(np.rate(10,20,-3500,10000), np.rate(10,20,-3500,10000,'end'), 4) assert_almost_equal(np.rate(10,20,-3500,10000,0), np.rate(10,20,-3500,10000,'end'), 4) # begin assert_almost_equal(np.pv(0.07,20,12000,0,1), np.pv(0.07,20,12000,0,'begin'), 2) # end assert_almost_equal(np.pv(0.07,20,12000,0), np.pv(0.07,20,12000,0,'end'), 2) assert_almost_equal(np.pv(0.07,20,12000,0,0), np.pv(0.07,20,12000,0,'end'), 2) # begin assert_almost_equal(np.fv(0.075, 20, -2000,0,1), np.fv(0.075, 20, -2000,0,'begin'), 4) # end assert_almost_equal(np.fv(0.075, 20, -2000,0), np.fv(0.075, 20, -2000,0,'end'), 4) assert_almost_equal(np.fv(0.075, 20, -2000,0,0), np.fv(0.075, 20, -2000,0,'end'), 4) # begin assert_almost_equal(np.pmt(0.08/12,5*12,15000.,0,1), np.pmt(0.08/12,5*12,15000.,0,'begin'), 4) # end assert_almost_equal(np.pmt(0.08/12,5*12,15000.,0), np.pmt(0.08/12,5*12,15000.,0,'end'), 4) assert_almost_equal(np.pmt(0.08/12,5*12,15000.,0,0), np.pmt(0.08/12,5*12,15000.,0,'end'), 4) # begin assert_almost_equal(np.ppmt(0.1/12,1,60,55000,0,1), np.ppmt(0.1/12,1,60,55000,0,'begin'), 4) # end assert_almost_equal(np.ppmt(0.1/12,1,60,55000,0), np.ppmt(0.1/12,1,60,55000,0,'end'), 4) assert_almost_equal(np.ppmt(0.1/12,1,60,55000,0,0), np.ppmt(0.1/12,1,60,55000,0,'end'), 4) # begin assert_almost_equal(np.ipmt(0.1/12,1,24,2000,0,1), np.ipmt(0.1/12,1,24,2000,0,'begin'), 4) # end assert_almost_equal(np.ipmt(0.1/12,1,24,2000,0), np.ipmt(0.1/12,1,24,2000,0,'end'), 4) assert_almost_equal(np.ipmt(0.1/12,1,24,2000,0,0), np.ipmt(0.1/12,1,24,2000,0,'end'), 4) # begin assert_almost_equal(np.nper(0.075,-2000,0,100000.,1), np.nper(0.075,-2000,0,100000.,'begin'), 4) # end assert_almost_equal(np.nper(0.075,-2000,0,100000.), np.nper(0.075,-2000,0,100000.,'end'), 4) assert_almost_equal(np.nper(0.075,-2000,0,100000.,0), np.nper(0.075,-2000,0,100000.,'end'), 4) def test_broadcast(self): assert_almost_equal(np.nper(0.075,-2000,0,100000.,[0,1]), [ 21.5449442 , 20.76156441], 4) assert_almost_equal(np.ipmt(0.1/12,range(5), 24, 2000), [-17.29165168, -16.66666667, -16.03647345, -15.40102862, -14.76028842], 4) assert_almost_equal(np.ppmt(0.1/12,range(5), 24, 2000), [-74.998201 , -75.62318601, -76.25337923, -76.88882405, -77.52956425], 4) assert_almost_equal(np.ppmt(0.1/12,range(5), 24, 2000, 0, [0,0,1,'end','begin']), [-74.998201 , -75.62318601, -75.62318601, -76.88882405, -76.88882405], 4) if __name__ == "__main__": run_module_suite()