Compute the convexity of a bond from its cash flows and yield.
先按每期票息与到期还本折现得债券价格;Macaulay 久期为现金流时间的加权平均(按期折为年);凸性刻画久期对利率的二阶敏感度,用于修正价格—收益率曲线的弯曲。