Class Complex
java.lang.Object
generic.complex.Complex
A complex number a + bi
This doesn't support any actual operations, nor does it implement
Comparable. It's simply
enough to store and print the number.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Complex
public Complex(double real, double imaginary)
-
-
Method Details
-
getReal
public double getReal() -
getImaginary
public double getImaginary() -
toString
-