yield
Yield of a coupon-paying bond given its price.
Syntax
Section titled “Syntax”v = yield(settlement, maturity, rate, pr, redemption, frequency, basis)Description
Section titled “Description”Inverse of price — solves iteratively for the yield given the price.
Example
Section titled “Example”yield('2008-02-15', '2016-11-15', 0.0575, 95.04287, 100, 2)