-
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
-
abc.m
some things on divide with data some things on divide with data some things on divide with data some things on divide with data some things on divide with data some things on divide with data some things on divide with data some things on divide with data some things on divide with data
- 2013-10-27 04:59:21下载
- 积分:1
-
Attachments_20131112
ebook for learning latex
- 2013-12-24 05:05:34下载
- 积分:1
-
72566206DTCWT
双树复小波变换去噪声, 小波变换去噪声,双树复合小波变换1-D和2-D信号:(Double - tree complex wavelet transform de - noising)
- 2017-06-24 19:10:58下载
- 积分:1
-
demo
说明: 用于说明程序如何可以用于一个点目标的相控阵扫描(to show how the procedures can be used for making a phased array scan of a point target)
- 2020-06-05 11:30:53下载
- 积分:1
-
model-of-car-engine
通过matlab模拟的汽车发动机的模型,对于初学者可能有所帮助(Through the matlab simulation of automobile engine model for beginners may help the engine
)
- 2012-03-25 21:49:05下载
- 积分:1
-
dsp5
功率谱分析的几种方法。经典的,周期图等谱分析方法,直接RUN(Power spectral analysis of several methods. Classic)
- 2014-12-15 11:22:02下载
- 积分:1
-
Oper_Data
PARSING DATA IN MATLAB ALGORITHM
- 2015-03-15 16:29:22下载
- 积分:1
-
DOA1
classic direction of arrival and beam forming method matlab implementation
- 2010-02-18 16:44:19下载
- 积分:1
-
137611
convetible bond pricing , use different code to price, crr model
- 2012-05-30 16:40:14下载
- 积分:1