实验1_误差计算与什么是数值计算方法及应用.doc (2).doc

上传人:hs****ma 文档编号:542535657 上传时间:2022-10-25 格式:DOC 页数:12 大小:204KB
返回 下载 相关 举报
实验1_误差计算与什么是数值计算方法及应用.doc (2).doc_第1页
第1页 / 共12页
实验1_误差计算与什么是数值计算方法及应用.doc (2).doc_第2页
第2页 / 共12页
实验1_误差计算与什么是数值计算方法及应用.doc (2).doc_第3页
第3页 / 共12页
实验1_误差计算与什么是数值计算方法及应用.doc (2).doc_第4页
第4页 / 共12页
实验1_误差计算与什么是数值计算方法及应用.doc (2).doc_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《实验1_误差计算与什么是数值计算方法及应用.doc (2).doc》由会员分享,可在线阅读,更多相关《实验1_误差计算与什么是数值计算方法及应用.doc (2).doc(12页珍藏版)》请在金锄头文库上搜索。

1、数值计算方法实验报告1什么是数值计算方法及应用与误差计算 1什么是数值计算方法及应用计算数学也叫做数值计算方法或数值分析。主要内容包括代数方程、线性代数方程组、微分方程的数值解法,函数的数值逼近问题,矩阵特征值的求法,最优化计算问题,概率统计计算问题等等,还包括解的存在性、唯一性、收敛性和误差分析等理论问题。数值计算方法,是一种研究并解决数学问题的数值近似解方法,是在计算机上使用的解数学问题的方法,简称计算方法。在科学研究和工程技术中都要用到各种计算方法。 例如,在航天航空、地质勘探、汽车制造、桥梁设计、 天气预报和汉字字样设计中都有计算方法的踪影.Numerical analysis inv

2、olves the study of methods of computing numerical data. In many problems this implies producing a sequence of approximations by repeating the procedure again and again. People who employ numerical methods for solving problems have to worry about the following issues: the rate of convergence (how lon

3、g does it take for the method to find the answer), the accuracy (or even validity) of the answer, and the completeness of the response (do other solutions, in addition to the one found, exist).Numerical methods provide approximations to the problems in question. No matter how accurate they are,they

4、do not, in most cases, provide the exact answer. In some instances working out the exact answer by a different approach may not be possible or may be too time consuming and it is in these cases where numerical methods are mostoften used.The ever-increasing advances in computer technology has enabled

5、 many in science and engineering to apply numerical methods to simulate physical phenomena. Numerical methods are often divided into elementary ones such as finding the root of an equation, integrating a function or solving a linear system of equations to intensive ones like the finite element metho

6、d. Intensive methods are often needed for the solution of practical problems and they often require the systematic application of a range of elementary methods, often thousands or millions of times over. In the development of numerical methods, simplifications need to be made to progress towards a s

7、olution: for example general functions may need to be approximated by polynomials and computers cannot generally represent numbers exactly anyway. As a result, numerical methods do not usually give the exact answer to a given problem, or they can only tend towards a solution getting closer and close

8、r with each iteration. Numerical methods are generally only useful when they are implemented on computer using a computer programming language. In the study of numerical methods, we can make a general distinction between a set of methods such as solving linear systems of equations , solving matrix e

9、igenvalue problems , interpolation , numerical integration and finding the roots or zeros of equations , which can be somewhat considered as the building blocks for larger that arise in engineering/applied mathematics/physics. For example the problem of solving ordinary differential equations , opti

10、misation and solvingintegral equations . But from the point of view of aplied mathematics or engineering, erhaps the most significant problems in numerical methods is the solution of partial differential equations by Finite Difference Methods , Finite Element Methods or Boundary Element Methods . 数值

11、分析是涉及计算数字数据的方法的研究。在许多问题中,这意味着一遍又一遍重复程序以产生近似值得序列。应用数值方法解决问题的人关心以下问题:收敛率(算法需要多久来找到答案),答案的准确性(或者有效性),响应的完整性(做其他的解决方案,另外一个发现,存在的话)。数值方法提供了问题的近似答案。无论它是如何准确,它在大多数情况下也不会提供真切的答案。在某些情况下用不同的方式寻求确切的答案是不太可能的或也可能是太耗费时间,这就是数值计算方法最经常使用情况。计算机技术的不断进步使许多科学和工程应用数值方法来模拟物理现象。数值方法通常分为初级的,如找到一个方程的根,集成功能型向集约型的,如有限元法求解线性系统的

12、方程。密集的方法往往是解决实际问题的需要,他们往往需要系统应用一系列的基本方法,通常是数千或数百万次。在发展的数值方法中,简化是取得进展的解决方案所必需的,例如:大多函数可能需要近似多项式和计算机不能准确地表示数字。因此,数值方法通常不会给出给定问题确切的答案,或者它们在每次迭代中只能越来越密切地趋近解决方案。数值方法一般仅在当它们被电脑上的一种计算机编程语言实现时起作用。在研究数值方法中,我们可以得到一些一整套方法的大体特性,如求解线性方程组,求解矩阵特征值问题,插值,数值积分,发现根部或零方程组的,这些可以在一定程度上被视为解决工程/应用数学/物理问题的桥梁。例如求解常微分方程,优化和解决

13、的问题,积分方程。但是,。用于数学或工程的角度来看,数值方法的最重要的问题是用有限差分法,有限元方法,边界元法解决偏微分方程。2. 误差计算1.实验描述1根据习题12和习题13构造算法和MATLAB程序,以便精确计算所有情况下的二次方程的根,包括的情况。2参照1.25对3个差分方程计算出前十个数值的近似值,构造列表和图形。误差算法分别为,.2.实验内容1设,且有方程。通过如下二次根公式可解出方程的根: (1)这些根还可通过下列等价公式解出: (2)2对下列三个差分方程计算出前10个数值近似值。在每种情况下引入一个小的初始误差。如果没有初始误差,则每个差分方程将生成序列。用MATLAB构造生成图

14、表。(a),其中n=1,2, (b) ,其中n=2,3, (c), 其中n=2,3, 3.实验结果及分析1.二次方程的的求根根据习题12所述,若b0,两个根为=,=;若b0Input a, b ,coutputoutputoutputend2.误差传播按附件的代码得到下面的图表。表 1 序列=以及近似值,和n01.0000000000000000.994000000000000 1.000000000000000 1.000000000000000 10.500000000000000 0.497000000000000 0.4970000000000000.49700000000000020.2500000000000000.2485000000000000.2455000000000000.24250000000000030.1250000000000000.1242500000000000.119750000000000 0.11525000000000040.0625000000000000.0621250000000000.056875000000000 0.05162500000000050.0

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号