Returns the convexity for a security.
DateTime settlement date of the security. DateTime maturity date of the security. double which specifies the security's annual coupon rate. double which specifies the security's annual yield. int which specifies the number of coupon payments per year (1 for annual, 2 for semiannual, 4 for quarterly). DayCountBasis object which contains the type of day count basis to use. A double which specifies the convexity for a security.

where n is calculated from Coupnum, and
.
Bond Class | Imsl.Finance Namespace | Example