I was hoping to get help with using SAGE to plot this equation: http://www.streetauthority.com/images/education/ytm.gif
This is the yield to maturity formula, expressing that a bond's price is the sum of the present values of its future cash flows. P = price of the bond n = number of periods C = coupon payment r = required rate of return on this investment F = maturity value t = time period when payment is to be received All variables are fixed except P and r, so my plot will be the function P(r). Once this is working, my next goal is to unfix n and have it vary on the z axis. A more basic question that could get me started is, how do I express that summation? Thanks, Brian (Source: http://www.streetauthority.com/terms/y/yield-to-maturity.asp) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
