文件名称: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
Complex/.project
Complex/.settings/org.eclipse.jdt.core.prefs
Complex/bin/Complex.class
Complex/bin/TextComplex.class
Complex/src/Complex.java
Complex/src/TextComplex.java
Complex/.settings
Complex/bin
Complex/src
Complex
Complex/.project
Complex/.settings/org.eclipse.jdt.core.prefs
Complex/bin/Complex.class
Complex/bin/TextComplex.class
Complex/src/Complex.java
Complex/src/TextComplex.java
Complex/.settings
Complex/bin
Complex/src
Complex
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.