Returns the NPV (Net Present Value) of a cash flow series.
Parameters: | rate : scalar
values : array_like, shape(M, )
|
---|---|
Returns: | out : float
|
Notes
Returns the result of: [G51]
\sum_{t=0}^{M-1}{\frac{values_t}{(1+rate)^{t}}}
References
[G51] | (1, 2) L. J. Gitman, “Principles of Managerial Finance, Brief,” 3rd ed., Addison-Wesley, 2003, pg. 346. |
Examples
>>> np.npv(0.281,[-100, 39, 59, 55, 20])
-0.0084785916384548798
(Compare with the Example given for numpy.lib.financial.irr)