public class DQuantity extends Quantity implements java.io.Externalizable
Modifier and Type | Method and Description |
---|---|
static DQuantity |
add(DQuantity x,
DQuantity y,
double k) |
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj.
|
Numeric |
addReversed(Numeric x,
int k)
Calculate
x+k&this . |
Numeric |
div(java.lang.Object y) |
static DQuantity |
divide(DQuantity x,
DQuantity y) |
Numeric |
divReversed(Numeric x) |
double |
doubleValue()
The value of the real component, as a double.
|
boolean |
isExact() |
boolean |
isZero() |
Numeric |
mul(java.lang.Object y) |
Numeric |
mulReversed(Numeric x) |
Complex |
number() |
RealNum |
re()
The value of the real component, as a RealNum.
|
void |
readExternal(java.io.ObjectInput in) |
static DQuantity |
times(DQuantity x,
DQuantity y) |
Unit |
unit() |
void |
writeExternal(java.io.ObjectOutput out) |
abs, add, compare, compare, compareReversed, dimensions, divide, doubleImagValue, doubleJmagValue, doubleKmagValue, im, imValue, jm, jmValue, km, kmValue, make, make, make, neg, reValue, times, toString
public DQuantity(double factor, Unit unit)
public final RealNum re()
Quantity
public final double doubleValue()
Quantity
doubleValue
in class Quantity
public Numeric add(java.lang.Object y, int k)
Numeric
public Numeric addReversed(Numeric x, int k)
Numeric
x+k&this
.addReversed
in class Quantity
public Numeric mulReversed(Numeric x)
mulReversed
in class Quantity
public Numeric divReversed(Numeric x)
divReversed
in class Quantity
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException