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:

0 = \sum\limits_{i = 1}^{\it count} {{{\it 
            value}_i } \over {\left( {1 + {\it rate}} \right)^i }}

where {\it value}_i = the ith cash flow, {\it rate} is the internal rate of return.

See Also