Description: Personal original code: using java application procedures, the definition of a complex number (z = x+ iy), Complex, including:
Two properties: the real part x and imaginary Ministry y
Default constructor Complex, (), set x = 0, y = 0
Constructor: Complex, (int i, int j)
The complex method: showComp () to display: 5+8 i or 5-8i form is displayed.
Seek two complex methods: (parameter two complex class object, the return value is a complex class object) public Complex addComp (Complex C1, Complex C2)
Seek two complex methods: (argument two complex class object, the return value is the plural class object) public Complex subComp (Complex C1, Complex C2)
Seeking the product of two complex numbers: (parameters are two complex class object, the return value is a complex class object, new plural = two of the real part of the complex product of the real part- two complex product of the imaginary part of the new complex imaginary part = two complex real and imaginary parts of the cros
To Search:
File list (Check if you may need any files):
ComplexTest.java
本Java程序设计详细要求.txt