User Tools

Site Tools


gibson:teaching:fall-2012:math445:lab4

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

gibson:teaching:fall-2012:math445:lab4 [2012/09/17 20:08]
gibson created
gibson:teaching:fall-2012:math445:lab4 [2012/09/17 20:12] (current)
gibson
Line 87: Line 87:
 the correct value, or we could use a built-in MATLAB function that the correct value, or we could use a built-in MATLAB function that
 does the same thing. It is called ''​fzero''​ and it finds a value that does the same thing. It is called ''​fzero''​ and it finds a value that
-will result in the function returning a zero.  On line 2 of you code+will result in the function returning a zero.  On line 2 of your code
 put the line ''​payment=fzero(@LoanPay,​[0,​loan])''​ and then change line 5 put the line ''​payment=fzero(@LoanPay,​[0,​loan])''​ and then change line 5
 to read ''​bal=LoanPay(payment)''​ and run this with the command to read ''​bal=LoanPay(payment)''​ and run this with the command
Line 104: Line 104:
 interest paid during the life of the loan. Use this code to answer the following questions: interest paid during the life of the loan. Use this code to answer the following questions:
  
-**1.** If you borrow $15,000 for 5 years at a 5% interest rate, how much interest would you end+**1.** If you borrow ​%%$%%15,000 for 5 years at a 5% interest rate, how much interest would you end
 up paying? up paying?
  
-**2.** If you borrow $15,000 for 5 years at a 10% interest rate will you end up paying exactly+**2.** If you borrow ​%%$15,000%% for 5 years at a 10% interest rate will you end up paying exactly
 double in total interest compared to a 5% interest rate? double in total interest compared to a 5% interest rate?
  
-**3.** A typical home in the area around Durham, NH costs around $300,000. If you pay  +**3.** A typical home in the area around Durham, NH costs around ​%%$300,000%%. If you pay  
-$50,000 on the down payment and you borrow the remaining $250,000 for 30 years at a 4% +%%$50,000%% on the down payment and you borrow the remaining ​%%$250,000%% for 30 years at a 4% 
 interest rate, how much interest would you end up paying? How does that amount compare ​ interest rate, how much interest would you end up paying? How does that amount compare ​
 to the original loan? to the original loan?
Line 118: Line 118:
 pay off the mortgage in just 15 years instead of 30? How much would you save interest? pay off the mortgage in just 15 years instead of 30? How much would you save interest?
  
-**5.** How much would you pay in interest if you borrowed $250,000 at a rate of 4% for 30 years +**5.** How much would you pay in interest if you borrowed ​%%$250,000%% at a rate of 4% for 30 years 
-compared with how much you would pay interest if you borrowed $250,000 at a rate of+compared with how much you would pay interest if you borrowed ​%%$250,000%% at a rate of
 8% for 30 years. How do your payments compare for these two different scenarios? 8% for 30 years. How do your payments compare for these two different scenarios?
  
  
gibson/teaching/fall-2012/math445/lab4.1347937730.txt.gz · Last modified: 2012/09/17 20:08 by gibson