views:

454

answers:

1

Not wanting to re-invent the wheel, are there any open-source (or included) math libraries in Objective-C (for iPhone) that can calculate Internal Rate of Return (IRR) or Modified Internal Rate of Return (MIRR)?

I'd hate to have to re-do all that work if someone out there has already done it.

Thanks!

+1  A: 

I kind of doubt that there is. Objective c just seems too theoretical and idealistic for something as dirty and practical as accounting.

You might rephrase your title (and question) to indicate that you are looking for a Financial/Accounting Library and not just a general math library. I know you mention IRR and MIRR, but if someone sees "Math Libraries" in the title, they will be thinking of a totally different kind of math. Hopefully someone who knows accounting will glance at your title and know the answer!

Edit:

This probably isn't quite what you're looking for, but QuantLib is ported to many different languages. Objective-C doesn't appear to be among them.

http://quantlib.org/index.shtml

http://stackoverflow.com/questions/1962057/are-there-any-bsd-or-lgpl-libraries-for-calculating-amortization-schedules

Ben Gartner
quantlib works for c++, which is easily enough embedded within Objective-C (becoming Objective-C++) http://en.wikipedia.org/wiki/Objective-c#Objective-C.2B.2B
cobbal
Thanks! Not nearly qualified enough in Objective-C to know that!
Ben Gartner
also see http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocCPlusPlus.html#//apple_ref/doc/uid/TP30001163-CH10-SW1
cobbal
Made it a community wiki if you'd like to add that in the body of the response.
Ben Gartner
-1 ."Too theoretical and idealistic"? What does this even mean?
Alex Reynolds