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
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
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
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