Constructor and Description |
---|
Quantity() |
Modifier and Type | Method and Description |
---|---|
Numeric |
abs() |
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj.
|
static Quantity |
add(Quantity x,
Quantity y,
int k) |
Numeric |
addReversed(Numeric x,
int k)
Calculate x+k&this.
|
int |
compare(java.lang.Object obj)
Return an integer for which of
this or obj is larger. |
static int |
compare(Quantity x,
Quantity y) |
int |
compareReversed(Numeric x) |
Dimensions |
dimensions() |
Numeric |
div(java.lang.Object y) |
static Quantity |
divide(Quantity x,
Quantity y) |
Numeric |
divReversed(Numeric x) |
double |
doubleImagValue()
The value of the imaginary component, as a double.
|
double |
doubleValue()
The value of the real component, as a double.
|
RealNum |
im()
The value of the imaginary component, as a RealNum.
|
double |
imValue()
The value of the imaginary component, as a double.
|
static Quantity |
make(Complex x,
Unit u) |
static Quantity |
make(double re,
double im,
Unit unit) |
static Quantity |
make(RealNum re,
RealNum im,
Unit unit) |
Numeric |
mul(java.lang.Object y) |
Numeric |
mulReversed(Numeric x) |
Numeric |
neg() |
abstract Complex |
number() |
RealNum |
re()
The value of the real component, as a RealNum.
|
double |
reValue()
The value of the real component, as a double.
|
static Quantity |
times(Quantity x,
Quantity y) |
java.lang.String |
toString(int radix) |
Unit |
unit() |
public Unit unit()
public Dimensions dimensions()
public abstract Complex number()
public RealNum re()
public RealNum im()
public final double reValue()
public final double imValue()
public double doubleValue()
doubleValue
in class java.lang.Number
public double doubleImagValue()
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 int compareReversed(Numeric x)
compareReversed
in class Numeric
public Numeric add(java.lang.Object y, int k)
Numeric
public Numeric addReversed(Numeric x, int k)
Numeric
addReversed
in class Numeric
public Numeric mulReversed(Numeric x)
mulReversed
in class Numeric
public Numeric divReversed(Numeric x)
divReversed
in class Numeric