Is it possible to calculate Internal Rate of Return (IRR) with GH?

I am talking about this:

My goal is to avoid using existing library from C# or Python as that would be a black box same as excel and not show the calculation explicitly.

Maybe?

IRR.gh (5.8 KB)

– Dale

1 Like

Thanks Dale! But I was trying to avoid the black box :innocent: :sweat_smile:

Another…

IRR.gh (9.6 KB)

– Dale

1 Like

Huh I was able to do it with Galapagos too!

I will also try anemone I think.

but why were you doing this ? is there’s no other economical tool to calculate it ?

I find most online tools are bad, but most importantly I wanted to understand the math behind it and one way of doing that is to reverse engineer it in Grasshopper.

By laying out simple components and how they relate to each other I can understand the math better.

When looking up information about the calculation it is often described as cryptic and very hard to do by hand. Which does not seem to be the case at all, just requires some informed guessing.

I was also overall curious if it was possible in GH. It is also a nice challenge.

And lastly I now have a nice tool to not depend on the black boxes (mysterious code) of others.

1 Like