文件名称:diedai
-
所属分类:
- 标签属性:
- 上传时间:2016-10-20
-
文件大小:22.78kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
迭代法是用于求方程或方程组近似根的一种常用的算法设计方法。设方程为f(x) 0,用某种数学方法导出等价的形式x g(x),然后按以下步骤执行:
(1) 选一个方程的近似根,赋给变量x0;
(2) 将x0的值保存于变量x1,然后计算g(x1),并将结果存于变量x0;
(3) 当x0与x1的差的绝对值还小于指定的精度要求时,重复步骤(2)的计算。
若方程有根,并且用上述方法计算出来的近似根序列收敛,则按上述方法求得的x0就认为是方程的根。-Iteration is a commonly used method for finding the approximate roots of equations or equations. Let the equation be f (x) 0, derive the equivalent form x g (x) by some mathematical method, and do the following:
(1) choose the approximate root of an equation, assigned to the variable x0
(2) the value of x0 stored in the variable x1, and then calculate g (x1), and the results stored in the variable x0
(3) When the absolute value of the difference between x0 and x1 is less than the specified accuracy requirement, the calculation of step (2) is repeated.
If the equation has roots and the approximate root sequence calculated by the above method converges, x0 obtained by the above method is considered to be the root of the equation
(1) 选一个方程的近似根,赋给变量x0;
(2) 将x0的值保存于变量x1,然后计算g(x1),并将结果存于变量x0;
(3) 当x0与x1的差的绝对值还小于指定的精度要求时,重复步骤(2)的计算。
若方程有根,并且用上述方法计算出来的近似根序列收敛,则按上述方法求得的x0就认为是方程的根。-Iteration is a commonly used method for finding the approximate roots of equations or equations. Let the equation be f (x) 0, derive the equivalent form x g (x) by some mathematical method, and do the following:
(1) choose the approximate root of an equation, assigned to the variable x0
(2) the value of x0 stored in the variable x1, and then calculate g (x1), and the results stored in the variable x0
(3) When the absolute value of the difference between x0 and x1 is less than the specified accuracy requirement, the calculation of step (2) is repeated.
If the equation has roots and the approximate root sequence calculated by the above method converges, x0 obtained by the above method is considered to be the root of the equation
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C编程常用算法.txt
diedai.cpp
diedai.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.