Вы находитесь на странице: 1из 1

Department of Mathematics

Maths 162: Modelling and Computation Assignment 0 Complete by 4pm on Thursday 13 March 2014 DO NOT hand it in. It is not for credit and will not be marked
Q1. Consider Example 2.2.1 on page 7 of the Coursebook. (a) Suppose you put $15,000 in a bank account on 1 February 2014 and you earn 4.5% interest per year. State the assumptions you make to answer the following questions: How much money will be in the account on 1 February 2015? How much money will be in the account on 1 February 2016? How much money will be in the account on 1 February 2020? (b) Using the same assumptions as in part (a), write a MATLAB script le that uses the formula as explained in Example 2.2.1 to calculate how much money will be in the account on 1 February 2020. Explain why, or why not, the MATLAB script le gives the same answer you got above. (c) Consider the boxed text at the end of this example on page 8. Using the information with assumptions provided in the boxed text, what is the real value of the investment on 1 February 2020 in todays dollars? (d) Try to nd an estimate of how much money you should invest to get a balance on 1 February 2020 that equals the amount in part (b) in todays dollars. Q2. The bodys surface area is often used for determining doses of drugs, for example in chemotherapy. Its not easy to measure a persons surface area, so there have been various formulae proposed to estimate the surface area using a persons height and weight. Two formulae for the body surface area in m2 are: Mosteller: Haycock: hw/3600 0.024265 h0.3964 w0.5378

where h is the height measured in centimetres and w the weight in kilogrammes. Write a MATLAB script le that produces a plot showing both estimates of the body surface area of a person for weights from 30 kg to 120 kg. Assume that the person is 165 cm tall. [Hint: See the Matlab Summary Chart in the appendix of the Coursebook (starting on page 193) for details of plotting several graphs on the same axes. You can add a legend to your graph if you wish by typing legend('Mosteller', 'Haycock') after your plot command.] Add a label to the horizontal axis and put a title on the plot. Put a grid on the plot, and use it to nd an approximate value of the weight for which both formulae give the same body surface area.

Вам также может понравиться