Mercurial > hg > octave-lyh
comparison scripts/finance/nper.m @ 5428:2a16423e4aa0
[project @ 2005-08-23 18:38:27 by jwe]
author | jwe |
---|---|
date | Tue, 23 Aug 2005 18:38:28 +0000 |
parents | 4c8a2e4e0717 |
children | ec8c33dcd1bf |
comparison
equal
deleted
inserted
replaced
5427:a92afe70fb8d | 5428:2a16423e4aa0 |
---|---|
33 ## not 5 percent). | 33 ## not 5 percent). |
34 ## @end deftypefn | 34 ## @end deftypefn |
35 ## | 35 ## |
36 ## @seealso{pv, pmt, rate, and npv} | 36 ## @seealso{pv, pmt, rate, and npv} |
37 | 37 |
38 ## Author: KH <Kurt.Hornik@ci.tuwien.ac.at> | 38 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
39 ## Description: Number of payments needed for amortizing a loan | 39 ## Description: Number of payments needed for amortizing a loan |
40 | 40 |
41 function n = nper (r, p, a, l, m) | 41 function n = nper (r, p, a, l, m) |
42 | 42 |
43 if ((nargin < 3) || (nargin > 5)) | 43 if ((nargin < 3) || (nargin > 5)) |