Iìm working with Python and I would to define a function which allow to evaluate the internal rate of return (IRR) of a generic investment project trough the interpolation method. I know there are several module available which allow to evaluate it in a easier way, but I'm interested in evaluate it manually. In particular, I would to evaluate IRR for a generic array dimension (of cash flows) digited by a generic user, so it could work automatically.
Someone could help me in this task?
Thanks a lot for helps.