# Financial Numerical Recipes in C++

eBook | Free |

Rating | |

Author | Bernt Arne Odegaard |

Publisher | Self-publishing |

Published | 2014 |

Pages | 264 |

Language | English |

Format | Paper book / ebook (PDF) |

This book is a a discussion of the calculation of specific formulas in finance. The field of finance has seen a rapid development in recent years, with increasing mathematical sophistication. While the formalization of the field can be traced back to the work of Markowitz (1952) on investors mean-variance decisions and Modigliani and Miller (1958) on the capital structure problem, it was the solution for the price of a call option by Black and Scholes (1973); Merton (1973) which really was the starting point for the mathematicalization of finance. The fields of derivatives and fixed income have since then been the main fields where complicated formulas are used. This book is intended to be of use for people who want to both understand and use these formulas, which explains why most of the algorithms presented later are derivatives prices.

This project started when I was teaching a course in derivatives at the University of British Columbia, in the course of which I sat down and wrote code for calculating the formulas I was teaching. I have always found that implementation helps understanding these things. For teaching such complicated material it is often useful to actually look at the implementation of how the calculation is done in practice. The purpose of the book is therefore primarily pedagogical, although I believe all the routines presented are correct and reasonably efficient, and I know they are also used by people to price real options.

To implement the algorithms in a computer language I choose C++. My students keep asking why anybody would want to use such a backwoods computer language, they think a spreadsheet can solve all the worlds problems. I have some experience with alternative systems for computing, and no matter what, in the end you end up being frustrated with higher end "languages", such as Matlab og R (Not to mention the straitjacket which is is a spreadsheet.) and going back to implementation in a standard language. In my experience with empirical finance I have come to realize that nothing beats knowledge a real computer language. This used to be FORTRAN, then C, and now it is C++. All example algorithms are therefore coded in C++. I do acknowledge that matrix tools like Matlab are very good for rapid prototyping and compact calculations, and will in addition to C++ in places also illustrate the use of Matlab, as well as other (public domain) tools.

- Bernt Arne Odegaard

### Similar Books

Options and Derivatives Programming in C++20, 2nd Edition

by **Carlos Oliveira**

Master the features of C++ that are frequently used to write financial software for options and derivatives, including the STL, templates, functional programming, and numerical libraries. This book also covers new features introduced in C++20 and other recent standard releases: modules, concepts, spaceship operators, and smart pointers. Y...

Price: **$34.37** | Publisher: **Apress** | Release: **2020**

Advanced Quantitative Finance with C++

by **Alonso Pena, Ph.D.**

This book will introduce you to the key mathematical models used to price financial derivatives, as well as the implementation of main numerical models used to solve them. In particular, equity, currency, interest rates, and credit derivatives are discussed. In the first part of the book, the main mathematical models used in the world of ...

Price: **$16.99** | Publisher: **Packt Publishing** | Release: **2014**

Deep Belief Nets in C++ and CUDA C: Volume 2

by **Timothy Masters**

Discover the essential building blocks of a common and powerful form of deep belief net: the autoencoder. You'll take this topic beyond current usage by extending it to the complex domain for signal and image processing applications. Deep Belief Nets in C++ and CUDA C: Volume 2 also covers several algorithms for preprocessing time se...

Price: **$37.99** | Publisher: **Apress** | Release: **2018**

Modern Data Mining Algorithms in C++ and CUDA C

by **Timothy Masters**

Discover a variety of data-mining algorithms that are useful for selecting small sets of important features from among unwieldy masses of candidates, or extracting useful features from measured variables.As a serious data miner you will often be faced with thousands of candidate features for your prediction or classification application, ...

Price: **$33.68** | Publisher: **Apress** | Release: **2020**

Introduction to Design Patterns in C++ with Qt, 2/E

by **Alan Ezust, Paul Ezust**

This book fills a void between the many syntax-oriented programming texts that teach readers how to program in C++ with standard I/O (e.g., Deitel) and the relatively few books that assume a knowledge of OOP/C++ and emphasize GUI programming using higher-level frameworks (e.g., Blanchette). There are plenty of books on C++ programming but...

Price: **$13.20** | Publisher: **Prentice Hall** | Release: **2011**

by **Ivan Cukic**

Functional Programming in C++ teaches developers the practical side of functional programming and the tools that C++ provides to develop software in the functional style. This in-depth guide is full of useful diagrams that help you understand FP concepts and begin to think functionally.Well-written code is easier to test and reuse, simple...

Price: **$39.99** | Publisher: **Manning** | Release: **2018**

by **Pat Morin**

There are plenty of books that teach introductory data structures. Some of them are very good. Most of them cost money, and the vast majority of computer science undergraduate students will shell out at least some cash on a data structures book.Open Data Structures (in C++) - The goal of this project is to free undergraduate computer scie...

**Free ebook** | Publisher: **Self-publishing** | Release: **2015**

by **Sanjay Madhav**

You can program games in many languages, but C++ remains the key language used by many leading development studios. Since it's the language used in their enormous code bases, it's the language they need to maintain and improve their games, and look for most often when hiring new developers. Game Programming in C++ is today'...

Price: **$28.99** | Publisher: **Addison-Wesley** | Release: **2018**