irr
Internal rate of return for a series of cash flows.
Syntax
Section titled “Syntax”v = irr(values, guess)Description
Section titled “Description”Returns the discount rate at which the NPV of values is zero. values must contain at least one positive and one negative entry. guess (default 0.1) is the iteration starting point.
Example
Section titled “Example”irr([-70000 12000 15000 18000 21000 26000])