Re: yield to maturity
- To: mathgroup at smc.vnet.net
- Subject: [mg41731] Re: [mg41721] yield to maturity
- From: Hugh Walker <hwalker at gvtc.com>
- Date: Tue, 3 Jun 2003 07:13:13 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On Monday, June 2, 2003, at 03:35 AM, Jonathan Mann wrote: > > Hi group, > > I need to solve for r in an equation of the form: > > Sum[I/(1+r)^t, {t,1,n}] + M/(1+r)^n ]==P > > For example's sake, let's say: > > Solve[ Sum[ 45/(1+r)^t ,{t,1,5}] + 1000/(1+r)^5 == 913, r] > > This isn't working out too well. Any ideas? > > Thanks, > > Jonathan Mann Try this: FindRoot[Sum[45/(1 + r)^t, {t, 1, 5}] + 1000/(1 + r)^5 == 913, {r, 0.05}] Cheers, ========== Hugh Walker Gnarly Oaks