Example: Convexity for a Security

The convexity of a 10 year bond which pays interest semiannually is returned in this example.

Output


Link to Java source.