新西兰天维网社区

标题: 求助,這一條matlab怎樣做 [打印本页]

作者: 喜羊羊與灰太郎    时间: 2011-4-27 22:32:28     标题: 求助,這一條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.

謝謝
作者: Bryan.CHEN    时间: 2011-5-4 12:23:41

maths162么,你题目都没发全
作者: 香口胶    时间: 2011-5-7 02:00:07

162。。。。。 很懷念。。。。




欢迎光临 新西兰天维网社区 (http://bbs.skytrade.co.nz/) Powered by Discuz! X2