rate: [scalar] Rate of discount value: [array_like, shape (M, )] value of cash flows time series. The (fixed) time interval between cash flow “events” must be the same as that for given rate is given. By convention, investments or “deposits” are -ve, income or “withdrawals” are + ve
present value as per given parameters.
Solving the equation:
Code 1: Working
## Python program explaining the pv () function
numpy as np
# rate values
"Net Present Value (npv):"
Net Present Value (npv): 46.5579792365