Generic calculations

The infrastructure of the library allows us to perform some calculations in a generic way; that is, independent of the particular instruments we’re pricing.

The idea is usually to bump the input data, or modifying them, or changing the evaluation date, and then to reprice our instruments. In the next few chapters, we’ll see how to do it in an idiomatic way.