Re: bussiness python

2017-09-05 Thread MRAB
On 2017-09-06 01:40, timetowalk wrote: On Tuesday, September 5, 2017 at 8:28:00 PM UTC-4, MRAB wrote: On 2017-09-05 22:21, jessicayate...@gmail.com wrote: > Here's a code that I have, i'm getting an error in line 5 and i'm not sure why, > > > # future value of annuity > p = 1000 > r = 2/100

Re: bussiness python

2017-09-05 Thread timetowalk
On Tuesday, September 5, 2017 at 8:28:00 PM UTC-4, MRAB wrote: > On 2017-09-05 22:21, jessicayate...@gmail.com wrote: > > Here's a code that I have, i'm getting an error in line 5 and i'm not sure > > why, > > > > > > # future value of annuity > > p = 1000 > > r = 2/100 > > n = 5 > > FV= p * ((1

Re: bussiness python

2017-09-05 Thread MRAB
On 2017-09-05 22:21, jessicayate...@gmail.com wrote: Here's a code that I have, i'm getting an error in line 5 and i'm not sure why, # future value of annuity p = 1000 r = 2/100 n = 5 FV= p * ((1+r) ** n - 1/r) print(FV) [snip] the output is supposed to be 5204.040160005 [snip] Your

bussiness python

2017-09-05 Thread jessicayates59
Here's a code that I have, i'm getting an error in line 5 and i'm not sure why, # future value of annuity p = 1000 r = 2/100 n = 5 FV= p * ((1+r) ** n - 1/r) print(FV) #FV of annuity- continuous compounding CF= 1000 r = 6/100/12 t = 12 import math FV= CF * ((1 + (r/n)) ** (n*t)) print (FV) #A