numpy.npv(rate, value) : This financial function helps user to calculate the NPV(Net Present Value) of a cash flow series.
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.
Equation being solved :
Code 1 : Working
Net Present Value(npv) : 46.5579792365
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course