新西兰天维网社区

 找回密码
登录  注册
搜索
热搜: 移民 留学
查看: 508|回复: 2
打印 上一主题 下一主题

[奥大] 求助,這一條matlab怎樣做 [复制链接]

Rank: 9Rank: 9Rank: 9

升级  65.8%

UID
223991
热情
765
人气
1150
主题
86
帖子
1267
精华
0
积分
1658
阅读权限
20
注册时间
2010-4-1
跳转到指定楼层
楼主
发表于 2011-4-27 22:32:28 |只看该作者 |倒序浏览 微信分享
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.

謝謝

使用道具 举报

Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

升级  0%

UID
247777
热情
52354
人气
53170
主题
290
帖子
52507
精华
10
积分
79207
阅读权限
30
注册时间
2010-7-21

灌水勋章 哈卡一族 10周年纪念

沙发
发表于 2011-5-4 12:23:41 |只看该作者 微信分享
maths162么,你题目都没发全

使用道具 举报

Rank: 6Rank: 6

升级  35%

UID
92924
热情
113
人气
226
主题
6
帖子
261
精华
0
积分
305
阅读权限
20
注册时间
2006-10-16
板凳
发表于 2011-5-7 02:00:07 |只看该作者 微信分享
162。。。。。 很懷念。。。。

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版| 联系论坛客服| 广告服务| 招贤纳士| 新西兰天维网

GMT+13, 2025-9-28 04:07 , Processed in 0.018643 second(s), 15 queries .

Powered by Discuz! X2 Licensed

Copyright 2001- Sky Media Limited, All Rights Reserved.

回顶部