- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
computer problems 1
数学与信息工程学院
实 验 报 告
课程名称: 计算方法
实 验 室: 5206
实验台号: 19
班 级:
姓 名:
实验日期: 2015 年 3 月 18 日
实验名称 Computer problems 1 实验目的
和 要 求 掌握相对误差,绝对误差的计算,有效数字的控制
实验内容和步骤:
实验内容:
Find the approximations to with 8 and 80 significant digits respectively.
Compute the absolute error and relative error in approximations of x by .
x=,=22/7 (2) x=,=3.14 (3)x=e, =2.718 (4)x=2, =1.414
Use three-digit rounding arithmetic to perform the follwing caculations.
(121-0.327)-119 (2) (121-119)-0.327 (3) (-)/(2e-5.4)
(4) -10+6e-
4.Let
(1) Use four-digit rouding arithmetic to evaluate f(0.1).
(2) The actual value is f(0.1)=-1Find the relative error for the value obtained
in part(1).
5.Use four-digit rounding arithmetic and the quadratic formulas of Example 1.5.3 to find the most accurate appproximations to the roots of the following quardratic equations .Compute the absolute errors and relative errors.
实验步骤:
1.
vpa(7^49,8)
ans =
42
vpa(7^49,80)
ans =
256923577521058870398046380029443118727168.
2.
(1). abs(pi-22/7)
ans =
0.0013
abs(pi-22/7)/(22/7)
ans =
4.0234e-004
(2). abs(pi-3.14)
ans =
0.0016
abs(pi-3.14)/3.14
ans =
5.0721e-004
(3). abs(exp(1)-2.718)
ans =
2.8183e-004
abs(exp(1)-2.718)/2.718
ans =
1.0369e-004
(4). abs(sqrt(2)-1.414)
ans =
2.1356e-004
abs(sqrt(2)-1.414)/1.414
ans =
1.5103e-004
3.
(1). vpa((121-0.327)-119,3)
ans =
1.67
(2) vpa((121-119)-0.327,3)
ans =
1.67
(3) vpa((13/14-6/7)/(2*exp(1)-5.4),3)
ans =
1.95
(4). vpa(-10*pi+6*exp(1)-3/62,3)
ans =
-15.2
4.(1). x=0.1;y=(x*cos(x)-sin(x))/(x-sin(x));vpa(y,4)
ans =
-1.999
(2). x=0.1;y=(x*cos(x)-sin(x))/(x-sin(x));z=vpa(y,9);abs(-1z)
ans =
.96389385362272e-17
5.
(1) z=solve(1.002*x^2-11.01*x+0.01165=0),y=vpa(z,4)
z =
0.0010582308894024083545001866185885
10.986965721206405974879032747513
您可能关注的文档
最近下载
- 办公家具采购方案(技术方案).pdf
- 木材常规干燥工艺干燥工艺.ppt
- 【鲁教版】七年级数学下期末试卷(及答案).doc
- 【结题报告】《小学语文阅读教学深度融合核心素养培育研究》结题报告.pdf
- 2023年湖南工商大学公共课《中国近代史纲要》期末试卷A(有答案).docx VIP
- 商业银行营业场所技防设施、设备使用管理办法(最新).doc VIP
- AP微积分AB 2014年真题 附答案和评分标准 AP Calculus AB 2014 Real Exam with Answers and Scoring Guidelines.pdf VIP
- 成人机械通气患者俯卧位护理-中华护理学会团体标准.pptx VIP
- 严蔚敏《数据结构》(C语言版)典型习题和考研真题详解.pdf VIP
- 中国公民健康素养66条讲座课件.ppt
文档评论(0)