Returns the internal rate of return for a schedule of cash flows.
Namespace:
Imsl.Finance
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Irr( double[] pmt, double guess ) |
Visual Basic (Declaration) |
---|
Public Shared Function Irr ( _ pmt As Double(), _ guess As Double _ ) As Double |
Visual C++ |
---|
public: static double Irr( array<double>^ pmt, double guess ) |
Parameters
- pmt
- Type: array<
System..::.Double
>[]()[]
A double array which contains cash flow values which occur at regular intervals.
- guess
- Type: System..::.Double
A double value which represents an initial guess at the return value from this function.
Return Value
A double which specifies the internal rate of return.
Remarks
It is found by solving the following:


where = the
cash flow,
is the internal rate of return.