Computes and returns the Net Present Value (NPV) of the given cash flows and discount rate.
The cash flow of each period.
The discount rate.
The NPV. NaN if no solution.
Computes and returns the Net Present Value (NPV) of the given cash flows and discount rate.