-
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
-
nihe3
自己编写的多项式拟合程序,阶数可选择,里面含有一个数据文件,下载即可运行,使用过程中也可以用自己的数据。(themselves prepared polynomial fitting procedure, the option order, which contains a data file can be downloaded operation, the use of the process can also use their own data.)
- 2007-06-21 10:16:19下载
- 积分:1
-
c8mgpc1
典型广义预测控制系统的仿真程序,模拟收到扰动之后的控制效果(Typical generalized predictive control system simulation program)
- 2013-04-22 21:34:50下载
- 积分:1
-
LR
Logistic Regression Classifier
- 2013-05-05 08:16:28下载
- 积分:1
-
FM
说明: matlab,FM,通信系统,调制,解调,信号波形,频谱(matlab, FM, a communication system, a modulation, a demodulation, the signal waveform, the spectrum)
- 2012-11-21 21:45:24下载
- 积分:1
-
minimal_surface_matlab_code
说明: 该源代码是图片切割的详细源代码,是2006年实现的(The source code is a detailed picture cutting the source code, implemented in 2006)
- 2010-04-26 08:55:41下载
- 积分:1
-
filter_2
matlab Code for LCL filter design Algorithem
- 2013-04-27 12:43:24下载
- 积分:1
-
蒙特卡洛
说明: 利用MATLAB可以产生各种形式的随机数,进行随机解决一些实际问题(系统的寿命、重积分、预测公司经营)(using MATLAB can produce various forms of random numbers, random solve some practical problems (system of life, re-integration, the company forecast operating))
- 2020-12-11 16:29:18下载
- 积分:1
-
matlab
有关于matlab的程序,均匀光纤布拉格光栅滤波特性仿真程序
(With regard to the matlab program, the uniform fiber Prague grating filter characteristics simulation program)
- 2021-04-07 19:59:01下载
- 积分:1
-
GA----BP
遗传算法优化BP神经网络,关于y=x1平方+x2平方的(BP neural network genetic algorithm, y = x1square+ x2 square)
- 2011-05-01 22:03:42下载
- 积分:1