public abstract class Complex extends Quaternion
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.
|
RealNum |
colatitude() |
static int |
compare(Complex x,
Complex y) |
int |
compare(java.lang.Object obj)
Return an integer for which of
this or obj is larger. |
Complex |
complexPart() |
Quaternion |
conjugate() |
Complex |
cos() |
Numeric |
div(java.lang.Object y) |
static Complex |
divide(Complex x,
Complex y) |
Numeric |
divReversed(Numeric x) |
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() |
RealNum |
jm()
The value of the "j" component, as a RealNum.
|
RealNum |
km()
The value of the "k" component, as a RealNum.
|
Complex |
log() |
RealNum |
longitude() |
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) |
static Complex |
polar(double r,
double t) |
static Complex |
polar(RealNum r,
RealNum t) |
static Complex |
power(Complex x,
Complex y) |
Complex |
sin() |
Complex |
sqrt() |
Complex |
tan() |
static Complex |
times(Complex x,
Complex y) |
Complex |
toExact() |
Complex |
toInexact() |
java.lang.String |
toString(int radix) |
Quaternion |
unitQuaternion() |
Quaternion |
unitVector() |
Quaternion |
vectorPart() |
add, compare, divide, doubleImagValue, doubleJmagValue, doubleKmagValue, doubleRealValue, doubleValue, equals, jmMinusOne, jmOne, kmMinusOne, kmOne, longValue, make, make, neg, number, polar, polar, power, times
add, compare, compareReversed, dimensions, divide, im, imValue, jmValue, kmValue, make, make, make, re, reValue, times, unit
public final RealNum jm()
Quantity
public final RealNum km()
Quantity
public final Complex complexPart()
complexPart
in class Quaternion
public Quaternion vectorPart()
vectorPart
in class Quaternion
public Quaternion unitVector()
unitVector
in class Quaternion
public Quaternion unitQuaternion()
unitQuaternion
in class Quaternion
public Quaternion conjugate()
conjugate
in class Quaternion
public boolean isExact()
isExact
in class Quaternion
public int classifyFinite()
classifyFinite
in class Quaternion
public Complex toExact()
toExact
in class Quaternion
public Complex toInexact()
toInexact
in class Quaternion
public static CComplex imOne()
public static CComplex imMinusOne()
public static Complex make(double re, double im)
public static Complex polar(double r, double t)
public Numeric abs()
abs
in class Quaternion
public RealNum angle()
angle
in class Quaternion
public final RealNum colatitude()
colatitude
in class Quaternion
public final RealNum longitude()
longitude
in class Quaternion
public boolean equals(java.lang.Object obj)
equals
in class Quaternion
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).compare
in class Quaternion
public boolean isZero()
isZero
in class Quaternion
public java.lang.String toString(int radix)
toString
in class Quaternion
public Numeric neg()
neg
in class Quaternion
public Numeric add(java.lang.Object y, int k)
Numeric
add
in class Quaternion
public Numeric addReversed(Numeric x, int k)
Numeric
x+k&this
.addReversed
in class Quaternion
public Numeric mul(java.lang.Object y)
mul
in class Quaternion
public Numeric mulReversed(Numeric x)
mulReversed
in class Quaternion
public Numeric div(java.lang.Object y)
div
in class Quaternion
public Numeric divReversed(Numeric x)
divReversed
in class Quaternion
public Complex exp()
exp
in class Quaternion
public Complex log()
log
in class Quaternion
public Complex sqrt()
sqrt
in class Quaternion
public Complex sin()
sin
in class Quaternion
public Complex cos()
cos
in class Quaternion
public Complex tan()
tan
in class Quaternion