当前位置:网站首页>误差的基本知识
误差的基本知识
2022-07-06 05:58:00 【瞻邈】
1. 误差来源
用计算机进行实际问题数值计算,计算误差是不可避免的。误差的来源主要有四个方面:
1.1. 模型误差
用数学模型描述实际问题,一般都要作一定的简化,由此产生的数学模型的解与实际问题的解之间会有差异,这种差异称为模型误差。
1.2. 观测误差
数学模型中包含的某些参数或常数,往往是通过仪器观测或实验获得其数值的,这样得到的观测数值与实际数值之间会有误差,这种误差称为观测误差。
1.3. 截断误差
求解数学模型所用的数值计算方法往往是近似方法,从而只能得到数学模型的近似解,由此产生的误差称为方法误差。由于近似方法一般都要用有限的四则算术运算步骤来代替无穷的极限运算,这种由截断一个无穷过程而引起的误差,就是截断误差。因而方法误差也称为截断误差。
1.4. 舍入误差
由于电子数字计算机只能将数表示成有限位进行运算,所以对超过位数的数字要按一定的规则舍入,由此产生的误差称为舍入误差。
数值计算方法主要研究截断误差和舍入误差对计算结果的影响,一般不考虑模型误差和观测误差。
2. 绝对误差与相对误差
数值计算中处理的数据和计算的结果,通常都是近似值,它们与准确值之间存在着误差。
设是准确值x的一个近似值,则称
为近似值
的绝对误差。
把近似值的绝对误差与准确值x之比称为近似值
的相对误差,记为
实际上,由于准确值x是未知的,所以通常把相对误差改取为
3. 数值计算的误差估计及算法稳定性
数值计算中误差传播情况比较复杂,要对每一步计算的误差进行精确估计难以做到,因而通常采用微分误差分析方法估计误差,即误差较小时忽略二阶及二阶以上的误差高阶小量。
所谓的数值稳定的算法是指,在数字计算机执行这个数值算法的过程中,产生的舍入误差能够被控制在一定范围内,并对最终的结果影响不大。如果计算过程中舍入误差不断增大,使最终结果与准确值相差较大,这样的算法就是数值不稳定的算法。
4. 数值计算中应注意的一些原则
用数值稳定性好的计算方法,以便控制舍入误差的传播;
两个数量级相差很大的数进行加减运算时,要防止小的那个数加减不到大的数中所引起的严重后果;
避免两个相近的数相减,以免严重损失有效数字;
在除法运算中,避免除数的绝对值远小于被除数的绝对值;
防止出现机器零和溢出停机;
简化计算步骤,减少运算次数。
参考文献
高等工程数学
边栏推荐
- (column 22) typical column questions of C language: delete the specified letters in the string.
- Download, install and use NVM of node, and related use of node and NRM
- 华为路由器如何配置静态路由
- Garbage collector with serial, throughput priority and response time priority
- 公司视频加速播放
- [experience] when ultralso makes a startup disk, there is an error: the disk / image capacity is too small
- Network protocol model
- High quality coding tool clion
- (5) Explanation of yolo-v3 core source code (3)
- PDK工藝庫安裝-CSMC
猜你喜欢
[untitled]
H3C V7 switch configuration IRF
How to use the container reflection method encapsulated by thinkphp5.1 in business code
Web服务连接器:Servlet
[Jiudu OJ 07] folding basket
ArcGIS application foundation 4 thematic map making
Construction of yolox based on paste framework
High quality coding tool clion
Application Security Series 37: log injection
(5) Explanation of yolo-v3 core source code (3)
随机推荐
嵌入式面试题(四、常见算法)
Analysis of grammar elements in turtle Library
Installation de la Bibliothèque de processus PDK - csmc
[paper reading] nflowjs: synthetic negative data intensive anomaly detection based on robust learning
【无标题】
Station B Liu Erden softmx classifier and MNIST implementation -structure 9
Embedded interview questions (IV. common algorithms)
进程和线程
Report on market depth analysis and future trend prediction of China's arsenic trioxide industry from 2022 to 2028
SequoiaDB湖仓一体分布式数据库2022.6月刊
Application Security Series 37: log injection
What is independent IP and how about independent IP host?
MIT6.s081-2020 Lab2 System Calls
My 2021
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
[experience] install Visio on win11
【论文代码】SML部分代码阅读
Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
Summary of data sets in intrusion detection field
How can large websites choose better virtual machine service providers?