Net present value and internal rate of return for a stream of cash flows
IRR via bisection. Multiple sign-changes may have multiple solutions; we return one.