Question: Write a function npv() that calculates the net present value of a NumPy array of cashflows given a discount rate. Assume the following: 1. Argument

Write a function npv() that calculates the net present value of a NumPy array of cashflows given a discount rate. Assume the following: 1. Argument is a NumPy array of annual cash flows, starting at t=0 2. Argument is a float of the annual discount rate as a decimal (i.e., indicates r=10% )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
