tvm_irr
Compute the internal rate of return for a series of cash flows. Uses Newton-Raphson method to return IRR, annualized IRR, and NPV.
Instructions
Internal rate of return via Newton-Raphson. First cash flow is typically negative (investment).
Use when computing the internal rate of return for a cash flow series. Provide an array of cash flows. Returns: IRR (decimal), annualized IRR, and NPV at the computed IRR (should be ~0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_flows | Yes | Array of cash flows (first is typically negative = initial investment) |