Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Number
gnu.math.Numeric
gnu.math.Quantity
gnu.math.DQuantity
Field Summary |
Method Summary | |
Numeric |
|
static DQuantity | |
Numeric |
|
Numeric |
|
Numeric | |
static DQuantity | |
double |
|
boolean |
|
boolean |
|
Numeric |
|
Numeric | |
Complex |
|
RealNum |
|
void |
|
static DQuantity | |
Unit |
|
void |
|
Methods inherited from class gnu.math.Quantity | |
abs , add , add , addReversed , compare , compare , compareReversed , dimensions , div , divReversed , divide , doubleImagValue , doubleValue , im , imValue , make , make , make , mul , mulReversed , neg , number , re , reValue , times , toString , unit |
Methods inherited from class gnu.math.Numeric | |
abs , add , add , addReversed , compare , compareReversed , div , divReversed , div_inv , equals , floatValue , geq , grt , intValue , isExact , isZero , longValue , mul , mulReversed , mul_ident , neg , power , sub , toString , toString |
public Numeric addReversed(Numeric x, int k)
Calculate x+k&this.
- Overrides:
- addReversed in interface Quantity
public final double doubleValue()
The value of the real component, as a double. This is relative to the unit().dims - i.e. unit()/doubleValue() is factored in.
- Overrides:
- doubleValue in interface Quantity
public final RealNum re()
The value of the real component, as a RealNum. The unit() is not factored in, so you actually need to multiply by unit() to get the true real component.
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException