Calculating IRR

February 11, 2008 · ruby

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.

gist 470188

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

gist 470191