April 2015
Intermediate to advanced
340 pages
7h 21m
English
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The price function of the BinomialEuropeanOption class is a public method that is the entry point for all the instances of this class."
A block of code is set as follows:
def _traverse_tree_(self, payoffs): # Starting from the time the option expires, traverse # backwards and calculate discounted payoffs at each node for i in range(self.N): payoffs = (payoffs[:-1] * self.qu + payoffs[1:] * self.qd) ...
Read now
Unlock full access