MathTop

yield_to_maturity 函数

求使固定票息债券价格成立的周期到期收益率。

语法

  • Finance:-YieldToMaturity(price, faceValue, couponRate, periods)
  • yield_to_maturity(price, faceValue, couponRate, periods)

参数与选项

price观测到的债券价格。
faceValue到期偿还的本金。
couponRate票息占面值的比例。
periods正整数票息期数。

示例

  1. 债券收益率Finance:-YieldToMaturity(1027.23248029, 1000, 0.06, 3)返回 0.05。