新西兰求助,這一條matlab怎樣做
在新西兰
Mosteller: square root(hw/3600)
Haycock: 0.024265 h^0.3964 w^0.5378
where h is the height measured in centimetres and w the weight in kilogrammes.
In Assignment 0, a plot was used to find the weight for which both formulae gave the same
body surface area when h = 170. In this question we will use the bisection method to find
the weight where both formulae give the same result. Example 4.28 in the Maths 162 book
gives an example of a Matlab script file that uses the bisection method to estimate when
ex − sin x = 0. The bisection script file for the equation f(x) = 0 is available on Cecil in
the Matlab folder. Save this script file in your H drive.
(a) Write a Matlab function with input parameter w (the weight) which calculates the
difference between the two formulae when h = 170. You can use h=170 in the Matlab
function. Hand in your Matlab function.
(b) Write Matlab commands that use the function in (a) to plot the difference for 50
w 70. Put a grid on the plot and use it to find a bracket for the difference. Note
that the smaller the bracket is the less iterations of bisection will be required.
謝謝
评论
maths162么,你题目都没发全
评论
162。。。。。 很懷念。。。。