So I decided to give the latest Ruby Quiz a shot. I created an Algebra module to deal with finding the root of a function -- using Newton's method.

and here is the more specific code to calculate the IRR: