下载此文档

实验一数值计算中误差的传播规律.doc


文档分类:论文 | 页数:约6页 举报非法文档有奖
1/6
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/6 下载此文档
文档列表 文档介绍
数值计算方法




实验序号:实验一
实验名称:数值计算中误差的传播规律
实验人: 熊华华
专业年级:09信息与计算科学
教学班: B01
学号:0094181
实验时间:
江西财经大学信息管理学院
实验一数值计算中误差的传播规律
一、实验目的
;
.
二、实验要求
本次实验包含三个相对独立的内容.
,请解释两个命令的格式和作用;
,分别使用求根公式和韦达定理两种方法,并比较其有效数字和相对误差;
,若取进行计算,计算各函数的结果,作图观察并比较它们的绝对误差(作图区间可取甚至更小),并从算法设计原则上说明原因.
三、实验步骤
;
DIGITS Set Maple's Digits.
Digits determines the accuracy of Maple's putations.
DIGITS, by itself, displays the current setting of Digits.
DIGITS(D) sets Digits to D for subsequent calculations. D is an
integer, or a string or sym representing an integer.
D = DIGITS returns the current setting of Digits. D is an integer.
VPA Variable precision arithmetic.
R = VPA(S) numerically evaluates each element of the double matrix
S using variable precision floating point arithmetic with D decimal
digit accuracy, where D is the current setting of DIGITS.
The resulting R is a SYM.

VPA(S,D) uses D digits, instead of the current setting of DIGITS.
D is an integer or the SYM representation of a number.

It is important to avoid the evaluation of an expression using double
precision floating point arithmetic before it is passed to VPA.
For example,
phi = vpa((1+sqrt(5))/2)
putes a 16-digit approximation to the golden ratio, then
co

实验一数值计算中误差的传播规律 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数6
  • 收藏数0 收藏
  • 顶次数0
  • 上传人260933426
  • 文件大小59 KB
  • 时间2017-08-16