-
Archive
4) 创建一个名为Complex的类,进行复数的算术运算。复数的形式为:
realpart+imaginarypart*i
用浮点变量表示类的private数据。提供构造函数,能够对所声明的该类对象进行初始化。在不提供初始化值的情况下,该构造函数应包含默认值。针对以下功能,分别提供一个public成员函数。
(1)两个复数相加;
(2)两个复数相减
(3)用(a, b)的形式打印复数,其中a为实部,b为虚部。
(4) Create a class called Complex, and perform complex arithmetic operations. Plural form: realpart+imaginarypart* i said private data class with floating point variables. Provide a constructor, the object can be declared for the class is initialized. In the case do not provide initialization values, the constructor should contain default values. For the following functions, which provide a public member function. (A) two complex numbers (2) the subtraction of two complex (3) (a, b) in the form of plural printing, where a is the real part, b is the imaginary part.)
- 2013-12-18 15:14:46下载
- 积分:1
-
PID0001
PID比例积分微分控制程序包
神经网络自适应控制程序
- 2010-12-18 17:12:44下载
- 积分:1
-
Matlab---xyc
改进的matlab取点求职的方法,很好用的,共享下(Improved access point matlab job search methods, the good, to share the)
- 2011-10-08 13:31:27下载
- 积分:1
-
chap11
syms x
g=exp(x*sin(x))
t=taylor(g,12,2)
xd = 1:0.05:3 yd = subs(g,x,xd)
ezplot(t, [1,3]) hold on
plot(xd, yd, r-. )
title( Taylor approximation vs. actual function )
legend( Taylor , Function )(syms x g = exp (x* sin (x)) t = taylor (g, 12,2) xd = 1:0.05:3 yd = subs (g, x, xd) ezplot (t, [1 , 3]) hold on plot (xd, yd, ' r-.' ) title (' Taylor approximation vs. actual function' ) legend (' Taylor' , ' Function' ))
- 2011-07-27 18:12:56下载
- 积分:1
-
rand_noise_generate
产生高斯分布的白噪声的方法. 数据输出格式为txt. 可以读取到其它程序中, 作为后续开放使用. (have a Gaussian distribution of white noise method. Data output format txt. Can be read into other procedures, As a follow-up opening.)
- 2007-06-15 21:13:22下载
- 积分:1
-
matlab-flown
关于matlab fixunknowns函数问题给出我的解答(Give me answers about the issue of the matlab fixunknowns function)
- 2013-04-15 21:22:27下载
- 积分:1
-
TestKey
真對freecale的Imax31的hotkey事件控制,知道如何去控制(for hotkey event control of IMAX31 of CPU of freescale)
- 2010-03-08 16:56:42下载
- 积分:1
-
new
系统仿真代码 MATLAB 基于CMMB的仿真源文件 不是原创(nothing )
- 2013-04-26 12:43:21下载
- 积分:1
-
guangyihuxiangguan
求两个信号的时延估计,通过时延估计对声源实现定位(Ask the two signal delay estimation, time delay estimation of sound source by positioning to achieve)
- 2010-11-21 09:05:16下载
- 积分:1
-
matlabb
数字语音处理及MATLAB仿真[张雪英][程序源代码](Digital audio processing and MATLAB simulation [ZhangXueYing] [source code])
- 2010-12-06 23:02:09下载
- 积分:1