diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-19 10:45:14 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-19 10:45:14 +0000 |
commit | 40505ed9548af6a49f052abad9cd8ed36ba102dd (patch) | |
tree | b77d58b68bdaf3e1314d6c4da161577144246685 /numpy/lib/financial.py | |
parent | 10d7e0872f6ede40f55b47f415a93046523cc904 (diff) | |
download | numpy-40505ed9548af6a49f052abad9cd8ed36ba102dd.tar.gz |
Merge documentation changes from wiki.
Diffstat (limited to 'numpy/lib/financial.py')
-rw-r--r-- | numpy/lib/financial.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/financial.py b/numpy/lib/financial.py index 2a751281f..a3552ebc0 100644 --- a/numpy/lib/financial.py +++ b/numpy/lib/financial.py @@ -88,8 +88,8 @@ def pmt(rate, nper, pv, fv=0, when='end'): fact = np.where(rate==zer, nper+zer, (1+rate*when)*(temp-1)/rate+zer) return -(fv + pv*temp) / fact pmt.__doc__ += eqstr + """ -Example -------- +Examples +-------- What would the monthly payment need to be to pay off a $200,000 loan in 15 years at an annual interest rate of 7.5%? @@ -116,8 +116,8 @@ def nper(rate, pmt, pv, fv=0, when='end'): zer = np.zeros(miter.shape) return np.where(rate==zer, A+zer, B+zer) + 0.0 nper.__doc__ += eqstr + """ -Example -------- +Examples +-------- If you only had $150 to spend as payment, how long would it take to pay-off a loan of $8,000 at 7% annual interest? |