文件名称:Complex
介绍说明--下载内容均来自于网络,请自行研究使用
创建一个复数类(Complex类),有两个类变量 realPart和imaginaryPart
至少写出两个构造函数 编写三个方法实现复数的加减乘
(a,b)+(c,d)(a+c,b+d)
(a,b)-(c,d)(a-c,b-d)
(a,b)*(c,d)=(ac-bd,ad+bc )
编写一个方法将复数以(a,b)显示出来
编写出测试类TestComplex,定义两个复数x,y实现加、减、乘并显示结果
-Create a complex (Complex), two the class variable realPart and imaginaryPart
At least write two constructors writing three methods complex addition and subtraction, multiplication
(A, b)+ (c, d) (a+ c, b+ d)
(A, b)- (c, d) (a-c, b-d)
(A, b)* (c, d) = (ac-bd, ad+ bc)
Write a method that the complex (a, b) is displayed
Write a test class TestComplex, defined two complex numbers x, y achieve add, subtract, multiply and displays the results
至少写出两个构造函数 编写三个方法实现复数的加减乘
(a,b)+(c,d)(a+c,b+d)
(a,b)-(c,d)(a-c,b-d)
(a,b)*(c,d)=(ac-bd,ad+bc )
编写一个方法将复数以(a,b)显示出来
编写出测试类TestComplex,定义两个复数x,y实现加、减、乘并显示结果
-Create a complex (Complex), two the class variable realPart and imaginaryPart
At least write two constructors writing three methods complex addition and subtraction, multiplication
(A, b)+ (c, d) (a+ c, b+ d)
(A, b)- (c, d) (a-c, b-d)
(A, b)* (c, d) = (ac-bd, ad+ bc)
Write a method that the complex (a, b) is displayed
Write a test class TestComplex, defined two complex numbers x, y achieve add, subtract, multiply and displays the results
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Complex\.classpath
.......\.project
.......\.settings\org.eclipse.jdt.core.prefs
.......\bin\Complex.class
.......\...\TextComplex.class
.......\src\Complex.java
.......\...\TextComplex.java
.......\.settings
.......\bin
.......\src
Complex