powered by
Calculate the plain vanilla bond price
bond.price(par,c,n,yield,m)
:the face value of the bond
:the annual coupon rate of the bond
:number of years
:the annual yield to maturity of a bond
:couponding period in a year
# NOT RUN { #bond.price(1000,0.03,10,0.0248,2) # }
Run the code above in your browser using DataLab