bondym

Calculates the bond yield maturity for a known bond price and future payments (coupons or fixed incomes). Depending on input, function can return scalar, vector or matrix

Arguments

  1. Number of periods (payments/incomes)
  2. Future payments
  3. Bondprice

Output

Bond yield maturity

Examples

bondym