Numerical Financial Recipes in Objective Caml

I wanted to work on a project using either Erlang or OCaml to get me back into the functional mindset.  I also wanted the project to be finance related, and preferably related to the strengths of the languages.  I tossed around the ideas of a order-matching system in Erlang, or a Monte-Carlo engine in OCaml, but ultimately time restraints have prevented me from tackling such (potentially) large scale projects.

Instead, I decided to translate Financial Numerical Recipes in C++ to Objective Caml.  My goal is to work through the examples in each chapter, and translate them to OCaml.  Hopefully, by the last chapter, I will have a better grasp of the ‘OCaml way.’

Without further adieu, here are the two chapters I have translated:

Value of Time: Discrete Cash Flows
Value of Time: Pricing Bonds with Discrete Cash Flows

Coding style comments are always welcome.

  • Share/Bookmark

One Response to “Numerical Financial Recipes in Objective Caml”

  • facebook zynga Says:

    i am constantly scurrying throughout the net almost all of the afternoon hence I choose to browse a lot, which unfortunately isn’t typically a good factor as the majority of the websites I view are composed of unnecessary nonsense copied from similar websites a thousand times, however I’ll hand it to ya this website is definitely quite informative and even seems to have a lot of unique content, so many thanks for splitting the trends of exactly replicating other folks’ sites, if you ever want to take up a couple of hands of facebook poker with me just gimme a shout – you have my email :)

Leave a Reply