-
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
-
Imatlabdocn
关于电磁场中用超松弛法求网格电位位的matlab源代码
(Overrelaxation method using electromagnetic fields demand grid potential bit matlab source code)
- 2012-09-09 23:17:36下载
- 积分:1
-
bbch0001
用c++编的matlab程序.是变步长方程解法.希望能给大家帮助,都是老师给布置的作业!谢谢!(using Matlab c addendum to the proceedings. Is a variable step equations. I hope that it provides help, teachers are to the layout of operations! Thank you!)
- 2006-10-15 19:55:22下载
- 积分:1
-
电力电子技术与Matlab仿真
本书详细介绍了AC/DC、AC/AC、DC/DC电路的仿真(This book details the AC/DC, AC/AC, DC/DC circuit simulation)
- 2020-07-02 00:20:01下载
- 积分:1
-
11.CPP-Primer-3rd
11.C++ Primer 3rd(中文版),众所周知的C++学习经典书籍,C++学习圣经(11.C++ Primer 3rd (Chinese version))
- 2015-04-04 10:28:24下载
- 积分:1
-
public
Base64编码说明 Base64编码要求把3个8位字节(3*8=24)转化为4个6位的字节(4*6=24),之后在6位的前面补两个0,形成8位一个字节的形式。 如果剩下的字符不...(Base64-encoded instructions require the Base64 encoding three 8-bit bytes (3* 8 = 24) was converted to 4 6 bytes (4* 6 = 24), then in front of the two s complement 6 0, 8 is formed bits in a byte form. If the rest of the characters do not ...)
- 2015-03-18 17:44:08下载
- 积分:1
-
Y868460[1]
matlabde的一些东西大家可以下下看啊(matlabde some things we can look at under ah ha ha)
- 2007-04-05 00:34:50下载
- 积分:1
-
11032112326d2526bf92eec85a
格兰杰因果关系检验 matlab和C的源代码,可以直接输入(Granger causality test matlab and C source code can be entered directly)
- 2020-10-24 11:07:21下载
- 积分:1
-
ds1104_vect_serial
DS 1014 IMFOC control
- 2012-05-16 04:20:45下载
- 积分:1
-
MATLAB-code-for-TSP
用GA算法和ACO算法在MATLAB上解决TSP问题,附有31个城市的坐标数据(Coordinate data with GA algorithms and ACO algorithm in MATLAB to solve the TSP with 31 cities)
- 2012-11-10 23:20:37下载
- 积分:1