cogitolearning
May 24, 2013
Manuals, QuantLib
c++, Manual, quantlib, term structure, yield curve
In a previous post I discussed the abstract class TermStructure that defines methods common to any kind of term structure. It was pointed out that many classes inherit from the TermStructure class, including a class called YieldTermStructure. This class is, again,…
Read more
cogitolearning
May 16, 2013
Manuals, QuantLib
In the section on numeric types in QuantLib, the Rate type was introduced which was intended to hold any kind of rates, including interest rates. The Rate type is essentially a double or a float number, depending on the configuration at…
Read more
cogitolearning
May 9, 2013
Java, Parser
design pattern, java, parser, tutorial, visitor
During the course of this series we have written a tokenizer, designed a grammar, implemented the grammar in a recursive descent parser and built an expression tree that corresponds to the mathematical expression and that is able to calculate a…
Read more
cogitolearning
May 7, 2013
Java, Parser
java, parser, recursive descent, tree, tutorial
In the last post I created classes that can represent a mathematical expression in the form of a tree data structure. We saw how expressions could be stored and evaluated but the code was not linked to the parser yet….
Read more
cogitolearning
May 3, 2013
Java, Parser
data structure, java, parser, tree, tutorial
The last post in this series showed you how a mathematical expression parser was implemented from the grammar that we designed earlier. This was all fine and good but the parser did not do much except confirm if a mathematical…
Read more
cogitolearning
May 1, 2013
Java, Parser
grammar, java, parser, recursive descent, tutorial
In the last post about the Java expression parser we designed a grammar for analysing a mathematical expression. That was certainly all a bit abstract and theoretical for many readers. Now we are ready to put some meat on these…
Read more