Returns the net present value of a stream of equal periodic cash
flows, which are subject to a given discount rate.
Namespace:
Imsl.Finance
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Npv( double rate, double[] eqCashFlow ) |
Visual Basic (Declaration) |
---|
Public Shared Function Npv ( _ rate As Double, _ eqCashFlow As Double() _ ) As Double |
Visual C++ |
---|
public: static double Npv( double rate, array<double>^ eqCashFlow ) |
Parameters
- rate
- Type: System..::.Double
A double which specifies the interest rate per period.
- eqCashFlow
- Type: array<
System..::.Double
>[]()[]
A double array of equally-spaced cash flows.
Return Value
A double which specifies the net present value of the investment.
Remarks
It is found by solving the following:


where = the
th cash flow.