gnu.math
Class DQuantity
java.lang.Object
|
+--java.lang.Number
|
+--gnu.math.Numeric
|
+--gnu.math.Quantity
|
+--gnu.math.DQuantity
- public class DQuantity
- extends Quantity
A Quantity represented as the product of a plain double and a Unit.
- See Also:
- Serialized Form
| Methods inherited from class gnu.math.Quantity |
abs,
add,
compare,
compare,
compareReversed,
dimensions,
div,
doubleImagValue,
im,
imValue,
make,
make,
make,
mul,
neg,
reValue,
toString |
| Methods inherited from class gnu.math.Numeric |
add,
div_inv,
equals,
floatValue,
geq,
grt,
intValue,
longValue,
mul_ident,
power,
sub,
toString |
| Methods inherited from class java.lang.Number |
byteValue,
shortValue |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DQuantity
public DQuantity(double factor,
Unit unit)
unit
public final Unit unit()
- Overrides:
- unit in class Quantity
number
public final Complex number()
- Overrides:
- number in class Quantity
re
public final RealNum re()
- Overrides:
- re in class Quantity
doubleValue
public final double doubleValue()
- Overrides:
- doubleValue in class Quantity
isExact
public boolean isExact()
- Overrides:
- isExact in class Numeric
isZero
public boolean isZero()
- Overrides:
- isZero in class Numeric
add
public static DQuantity add(DQuantity x,
DQuantity y,
double k)
mul
public static DQuantity mul(DQuantity x,
DQuantity y)
div
public static DQuantity div(DQuantity x,
DQuantity y)
add
public Numeric add(java.lang.Object y,
int k)
- Overrides:
- add in class Quantity
addReversed
public Numeric addReversed(Numeric x,
int k)
- Overrides:
- addReversed in class Quantity
mul
public Numeric mul(java.lang.Object y)
- Overrides:
- mul in class Quantity
mulReversed
public Numeric mulReversed(Numeric x)
- Overrides:
- mulReversed in class Quantity
div
public Numeric div(java.lang.Object y)
- Overrides:
- div in class Quantity
divReversed
public Numeric divReversed(Numeric x)
- Overrides:
- divReversed in class Quantity