Question

8.7 If an amount of money A is invested for k years at a nominal annual interest rate r (expressed as a decimal fraction), th

use matlab

love you

1 0
Add a comment Improve this question Transcribed image text
Answer #1

the maximum value for n is 50:

clc;clear all;close all;
A=1000; %investment
r=0.04; % interest rate
k=10; %years
for n=1:50;
V=A*(1+r/n)^(n*k);
end
display(V)
l=A*exp(r*k)

output:

V =

1.4916e+03


l =

1.4918e+03

for the max value for n=100:

clc;clear all;close all;
A=1000; %investment
r=0.04; % interest rate
k=10; %years
for n=1:100;
V=A*(1+r/n)^(n*k);
end
display(V)
l=A*exp(r*k)

output:

V =

1.4917e+03


l =

1.4918e+03

for n max value is 200:

clc;clear all;close all;
A=1000; %investment
r=0.04; % interest rate
k=10; %years
for n=1:200;
V=A*(1+r/n)^(n*k);
end
display(V)
l=A*exp(r*k)

output:

V =

1.4918e+03


l =

1.4918e+03

as increasing the value of n,at n=200 both the values are gets equal.

Add a comment
Know the answer?
Add Answer to:
use matlab love you 8.7 If an amount of money A is invested for k years at a nominal annual interest rate r (expressed...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT