Description Usage Arguments Details
Price an n-period semi-annual coupon bond.
1 | price_bond(n, c, M, y)
|
n |
The number of 6 month periods in the bond. |
c |
The annualized semi-annual coupon rate, as a decimal. |
M |
The maturity value of the bond. |
y |
The yield to maturity on the bond, as a decimal. |
Any of these variables can be a vector, and as long as the other variables are either the same length, or length 1, you can calculate multiple bond prices at once.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.