Question

MATLAB WORK PLEASEInterest is accrued according to the following formula: A=P i(1 + i) (1 + i) – 1 where A is the annual payment, P is the pr

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

Plotting the function outputs a curve like this

104 15 | 0.5 -0.5上 -0.3 -0.2 01 0 01 10.2 0.3 04 0.5

From here we see that the initial guess x0 can be set at 0.2

I have provided both the text and the screenshot for your better understanding. The screenshot also has some comments for your help. Please note that these are script files which are to be saved as "function_name.m" in your MATLAB root directory.

InterestRate.m

function i = InterestRate(A,P,n)

%declaring the function as y - f(i) = 0
fun = @(x) (A - P*((x*power(1+x,n))/(power(1+x,n) - 1)));

%using fzero and predetermined initial value to determine the root
i = fzero(fun,0.2);

end

OUTPUT

x Workspace Command Window Editor - InterestRate.m pilot.m InterestRate.m function i = InterestRate (A,P,n) 1 2 $declaring th

*A humble request* - If you have any doubt, please use the comment section to communicate. Please be a little patient, it is an honest promise I will reply as soon as possible. This will clarify your doubt, and also help me to get better at answering your next questions. At the same time, If my answer helped you, please consider leaving an upvote. I hope you understand my viewpoint. Thank you :)

Add a comment
Know the answer?
Add Answer to:
MATLAB WORK PLEASE Interest is accrued according to the following formula: A=P i(1 + i)" (1...
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
  • MATLAB WORK PLEASE The upward velocity of a rocket can be computed from the following formula:...

    MATLAB WORK PLEASE The upward velocity of a rocket can be computed from the following formula: v=u* In mo -91 mo-91 where v = upward velocity, u = the velocity at which fuel is expelled relative to the rocket, me = the initial mass of the rocket at time t=0,9 = the fuel consumption rate, and g = the acceleration due to gravity. Compute the time tro at which v reaches an arbitrary value using the bisection method. Use the...

  • MATLAB WORK PLEASE An oscillating current in an electric circuit is given by: I = 9e-t...

    MATLAB WORK PLEASE An oscillating current in an electric circuit is given by: I = 9e-t sin(2nt) where I is the current in Amperes and t is the time in seconds. Use fzero to determine the two values of t in the range of 0 <t< 1.5 such that I desired = -1.15A. (What does a negative current physically mean?) The outputs of the function are t, and t2, where tı = first time that I desired = -1.15A and...

  • Please MATLAB for all coding with good commenting. (20) Consider the function f(x) = e* -...

    Please MATLAB for all coding with good commenting. (20) Consider the function f(x) = e* - 3x. Using only and exactly the four points on the graph off with x-coordinates -1,0, 1 and 2, use MATLAB's polyfit function to determine a 3' degree polynomial that approximates f on the interval (-1, 2]. Plot the function f(x) and the 360 degree polynomial you have determined on the same set of axes. f must be blue and have a dashed line style,...

  • Please include all the details and how to solve 1 Solving for i in an Annuity...

    Please include all the details and how to solve 1 Solving for i in an Annuity 2 Present Value -10,500 3 Future Value 4 Annual Payment 1,500 5 Number of Years 5 Annual Rate 10 B Instruction: Suppose that you are approached with an offer to purchase an investment o that will provide cash flows of $1,500 per year for 10 years. The cost of 1 purchasing this investment is $10,500. 2 So now the annual rate is just the...

  • I. SIMPLE INTEREST: 1. How much is the amount and the accrued simple interest of $...

    I. SIMPLE INTEREST: 1. How much is the amount and the accrued simple interest of $ 18,950; at 6.585% for seven years and nine months? 2. Find the difference between the exact simple interest and the ordinary simple interest when calculating $ 15,180 at 8.625% for 60 days? 3. If you deposited $ 18,750 at what%, would you accumulate an amount of $ 57,156.25 in five years? II. COMPOUND INTEREST: (annual and parts of the year) 1. Find the amount...

  • Please show the work/formulas. Problem 26.30 | 3.570 At an annual effective interest rate of i,...

    Please show the work/formulas. Problem 26.30 | 3.570 At an annual effective interest rate of i, the present value of a perpetuity- immediate starting with a payment of 200 in the first year and increasing by 50 each year thereafter is 46,530. Calculate i. Problem 27.1 1825.596 A 20 year increasing annuity due pays 100 at the start of year 1, 105 at the start of year 2, 110 at the start of year 3, etc. In other words, each...

  • You wish to buy a car for $12,000 at a 5% annual interest rate, compounded monthly....

    You wish to buy a car for $12,000 at a 5% annual interest rate, compounded monthly. The loan will be repaid in 5 years with monthly payments. What is your monthly payment (calculated with the equations on the next page)? Compare your answer to that obtained with the built in function, PMT. Be sure to label all cells appropriately. (There is no need to create a monthly payment table, simply use the equations on the next page.) Loans: where: and,...

  • (1 point) Problem 3 -Unknown and Varying Interest At an annual effective rate of interest i, the following 2 payment streams have equal present values. (i) $550 paid at the end of each year for 1...

    (1 point) Problem 3 -Unknown and Varying Interest At an annual effective rate of interest i, the following 2 payment streams have equal present values. (i) $550 paid at the end of each year for 13 years. (i) A 13-year deferred perpetuity-immediate of $275 per year (i.e. first payment at time 14) Determine the effective annual rate of interest (1 point) Problem 3 -Unknown and Varying Interest At an annual effective rate of interest i, the following 2 payment streams...

  • please show all steps, I need help on part D. Thanks! row detailed and appropriate cash...

    please show all steps, I need help on part D. Thanks! row detailed and appropriate cash flow diagrams for each problem, and use quations to solve each problem. Show and explain all work Facter Name ormula Converts to given P to P given F to A given F to A given fP to F given A to P given A Single Payment Compound Amount (F/P, ma, n) P/F, P%, n) AF.%, n) (AP, ins, n) Single Payment Present Worth Uniform...

  • What would a compound interest formula look like coded in PHP? The Compound Interest Formula is:...

    What would a compound interest formula look like coded in PHP? The Compound Interest Formula is: ? = ? (1 + ? ? ) ?? Where P = principal amount (the initial amount you borrow or deposit) r = annual rate of interest (as a decimal) t = number of years the amount is deposited or borrowed for. A = amount of money accumulated after n years, including interest. n = number of times the interest is compounded per year...

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