public interface ComplexNumber
Modifier and Type | Method and Description |
---|---|
double |
abs()
Returns the absolute value of the complex number.
|
double |
arg()
Returns the argument of the complex number.
|
double |
getImag()
Returns the real part of the complex number.
|
double |
getReal()
Returns the real part of the complex number.
|
boolean |
isInfinite()
Checks whether the complex number is infinite.
|
boolean |
isNaN()
Checks whether the complex number is NaN.
|
java.lang.String |
toString()
Returns a String representation of the complex number.
|
double getReal()
double getImag()
double abs()
double arg()
boolean isNaN()
boolean isInfinite()
java.lang.String toString()
toString
in class java.lang.Object