| java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.Unit
All known Subclasses: gnu.math.NamedUnit, gnu.math.MulUnit,
Constructor Summary | |
| Unit() |
Method Summary | |
public static Unit | define(String name, DQuantity value) | public static Unit | define(String name, double factor, Unit base) | final public Dimensions | dimensions() | public static Unit | divide(Unit unit1, Unit unit2) | final public double | doubleValue() | public String | getName() | public int | hashCode() | public boolean | isExact() | final public boolean | isZero() | public static NamedUnit | lookup(String name) | public static NamedUnit | make(String name, Quantity value) | public Complex | number() | public static Unit | pow(Unit unit, int power) | public Numeric | power(IntNum y) | public Unit | sqrt() | static Unit | times(Unit unit1, int power1, Unit unit2, int power2) | public static Unit | times(Unit unit1, Unit unit2) | public String | toString(double val) | public String | toString(RealNum val) | public String | toString() | public Unit | unit() |
NON_COMBINABLE | public static double NON_COMBINABLE(Code) | | A magic factor to indicate units that have the same "dimension"
but not a fixed multiple.
E.g. "month" and "day", or money of different currencies.
Since they have the same dimension, they can be added to get
an (unimplemented) combined quantity, but they cannot be compared.
No general support yet, but used for time Duration.
|
base | Unit base(Code) | | A Unit equivalent to this unit, divided by factor.
Same as the value of the dimensions() only.
|
factor | double factor(Code) | | The value of this Unit is factor*dims.
|
doubleValue | final public double doubleValue()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isExact | public boolean isExact()(Code) | | |
isZero | final public boolean isZero()(Code) | | |
Methods inherited from gnu.math.Quantity | public Numeric abs()(Code)(Java Doc) public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc) public Numeric add(Object y, int k)(Code)(Java Doc) public Numeric addReversed(Numeric x, int k)(Code)(Java Doc) public static int compare(Quantity x, Quantity y)(Code)(Java Doc) public int compare(Object obj)(Code)(Java Doc) public int compareReversed(Numeric x)(Code)(Java Doc) public Dimensions dimensions()(Code)(Java Doc) public Numeric div(Object y)(Code)(Java Doc) public Numeric divReversed(Numeric x)(Code)(Java Doc) public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc) public double doubleImagValue()(Code)(Java Doc) public double doubleValue()(Code)(Java Doc) public RealNum im()(Code)(Java Doc) final public double imValue()(Code)(Java Doc) public static Quantity make(Complex x, Unit u)(Code)(Java Doc) public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc) public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc) public Numeric mul(Object y)(Code)(Java Doc) public Numeric mulReversed(Numeric x)(Code)(Java Doc) public Numeric neg()(Code)(Java Doc) abstract public Complex number()(Code)(Java Doc) public RealNum re()(Code)(Java Doc) final public double reValue()(Code)(Java Doc) public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc) public String toString(int radix)(Code)(Java Doc) public Unit unit()(Code)(Java Doc)
|
|
|