Compute the convexity of a bond from its cash flows and yield.
先按每期票息與到期還本折現得債券價格;Macaulay 久期為現金流時間的加權平均(按期折為年);凸性刻畫久期對利率的二階敏感度,用於修正價格—收益率曲線的彎曲。