-
Rombegrg
录入程序代码,并对该实验代码进行调试,检查程序代码中的语法和语义错误。
编写函数f(x)的代码如下:
Romberg算法¨
function z=f(x)
if (x~=0)
z=sin(x)/x
else
z=1
end
备注:在实验代码中,首先输入必要的变量的值如下:
a=0
b=1
tol=1e-8
待查询检查通过,开始输入执行代码
设置格式format short g查看u的值和sin(u)的值:
(Input program code, and debugging code for the experiment to check the program code in the syntax and semantic errors. The preparation of a function f (x) of the code is as follows: Romberg algorithm ¨ function z = f (x) if (x ~ = 0) z = sin (x)/x else z = 1 end Note: In the experimental code, First, enter the necessary value of the variable is as follows: a = 0 b = 1 tol = 1e-8 pending inquiries, checking through, began to enter the implementation of the code format format short g see u, values and sin (u) values:)
- 2009-12-28 22:03:42下载
- 积分:1
-
PMDP_Handbook
Project management specs at NASA
- 2010-12-21 06:30:54下载
- 积分:1
-
16-QAM-fadingchannels
series of codes for simulation of 16-QAM BER over fading and AWGN channels
- 2010-02-07 22:26:55下载
- 积分:1
-
model
遗传算法matlab程序 tsp旅行商问题(matlab yuanchengxu)
- 2013-08-10 16:23:55下载
- 积分:1
-
ruanjianrenyuanxinjin
已知软件人员的开发薪金与各个元素之间的表格关系,求出线性关系,根据各个要素求解软件人员的薪金(The salary question
)
- 2011-10-18 10:20:11下载
- 积分:1
-
Power
Power Electric Sampple
FACTS - Modelling and Simulation in Power Networks
- 2014-11-10 06:48:37下载
- 积分:1
-
face-detect
利用labview与matlab结合实现人脸定位算法 置入mathscript(Labview matlab combined with the use of a face localization algorithm implementation into mathscript)
- 2013-11-04 16:14:55下载
- 积分:1
-
TextField
TextField.getDepth 返回文本域的Depth(深度) TextField.getNewTextFormat 获得最新加入文本的默认文本格式 TextField.removeTextField 删除使用MovieClip.createTextField创建的文本域 TextField.setNewTextFormat 对新加入的文本设定为新格式 (TextField. GetDepth returns the text field the Depth (Depth) TextField. Get the latest to join the text getNewTextFormat TextField. The default text format removeTextField delete using the MovieClip. CreateTextField created text field TextField. SetNewTextFormat for new text set to the new format)
- 2013-12-05 15:42:55下载
- 积分:1
-
gpops52
伪谱法优化软件,采用高斯伪谱法,适宜于解算飞行器轨迹优化问题(gopos 5.2)
- 2013-12-20 15:57:36下载
- 积分:1
-
infinite-series
掌握用MATLAB求无穷级数的和、求幂级数
的收敛域、展开函数为幂级数以及展开周
期函数为傅里叶级数的方法(infinite series)
- 2015-12-17 17:18:11下载
- 积分:1