public abstract class Complex extends Quantity
Constructor and Description |
---|
Complex() |
Modifier and Type | Method and Description |
---|---|
Numeric |
abs() |
static Complex |
add(Complex x,
Complex y,
int k) |
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj.
|
Numeric |
addReversed(Numeric x,
int k)
Calculate x+k&this.
|
RealNum |
angle() |
int |
classifyFinite()
Check if value is finite, infinite, or NaN.
|
static int |
compare(Complex x,
Complex y) |
int |
compare(java.lang.Object obj)
Return an integer for which of
this or obj is larger. |
Numeric |
div(java.lang.Object y) |
static Complex |
divide(Complex x,
Complex y) |
Numeric |
divReversed(Numeric x) |
double |
doubleImagValue()
The value of the imaginary component, as a double.
|
double |
doubleRealValue() |
double |
doubleValue()
The value of the real component, as a double.
|
static boolean |
equals(Complex x,
Complex y) |
boolean |
equals(java.lang.Object obj) |
Complex |
exp() |
static CComplex |
imMinusOne() |
static CComplex |
imOne() |
boolean |
isExact() |
boolean |
isZero() |
Complex |
log() |
long |
longValue() |
static Complex |
make(double re,
double im) |
static Complex |
make(RealNum re,
RealNum im) |
Numeric |
mul(java.lang.Object y) |
Numeric |
mulReversed(Numeric x) |
Numeric |
neg() |
static Complex |
neg(Complex x) |
Complex |
number() |
static DComplex |
polar(double r,
double t) |
static DComplex |
polar(RealNum r,
RealNum t) |
static Complex |
power(Complex x,
Complex y) |
Complex |
sqrt() |
static Complex |
times(Complex x,
Complex y) |
Complex |
toExact() |
Complex |
toInexact() |
java.lang.String |
toString(int radix) |
add, compare, compareReversed, dimensions, divide, im, imValue, make, make, make, re, reValue, times, unit
public int classifyFinite()
public static CComplex imOne()
public static CComplex imMinusOne()
public double doubleValue()
Quantity
doubleValue
in class Quantity
public double doubleImagValue()
Quantity
doubleImagValue
in class Quantity
public final double doubleRealValue()
public static Complex make(double re, double im)
public static DComplex polar(double r, double t)
public RealNum angle()
public int compare(java.lang.Object obj)
Numeric
this
or obj
is larger.
Return 1 if this>obj
; 0 if this==obj
;
-1 if this<obj
;
-2 if this!=obj
otherwise (for example if either is NaN);
-3 if not comparable (incompatible types).public Numeric add(java.lang.Object y, int k)
Numeric
public Numeric addReversed(Numeric x, int k)
Numeric
addReversed
in class Quantity
public Numeric mulReversed(Numeric x)
mulReversed
in class Quantity
public Numeric divReversed(Numeric x)
divReversed
in class Quantity
public Complex exp()
public Complex log()
public Complex sqrt()