numpy.npv(rate, values)
[source]
Returns the NPV (Net Present Value) of a cash flow series.
Parameters: |
rate : scalar The discount rate. values : array_like, shape(M, ) The values of the time series of cash flows. The (fixed) time interval between cash flow “events” must be the same as that for which |
---|---|
Returns: |
out : float The NPV of the input cash flow series |
Returns the result of: [G58]
[G58] | (1, 2) L. J. Gitman, “Principles of Managerial Finance, Brief,” 3rd ed., Addison-Wesley, 2003, pg. 346. |
>>> np.npv(0.281,[-100, 39, 59, 55, 20]) -0.0084785916384548798
(Compare with the Example given for numpy.lib.financial.irr)
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.npv.html