| java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity
All known Subclasses: gnu.math.Unit, gnu.math.CQuantity, gnu.math.DQuantity, gnu.math.Complex, gnu.math.DateTime, gnu.math.Duration,
Quantity | abstract public class Quantity extends Numeric (Code) | | A quantity with a unit.
This generalizes the DSSSL quantity type (to more than lengths).
author: Per Bothner |
Method Summary | |
public Numeric | abs() | public static Quantity | add(Quantity x, Quantity y, int k) | public Numeric | add(Object y, int k) | public Numeric | addReversed(Numeric x, int k) | public static int | compare(Quantity x, Quantity y) | public int | compare(Object obj) | public int | compareReversed(Numeric x) | public Dimensions | dimensions() | public Numeric | div(Object y) | public Numeric | divReversed(Numeric x) | public static Quantity | divide(Quantity x, Quantity y) | public double | doubleImagValue() The value of the imaginary component, as a double.
This is relative to the unit().dims - i.e. | public double | doubleValue() The value of the real component, as a double.
This is relative to the unit().dims - i.e. | public RealNum | im() The value of the imaginary component, as a RealNum. | final public double | imValue() The value of the imaginary component, as a double.
This is relative to the unit().dims - i.e. | public static Quantity | make(Complex x, Unit u) | public static Quantity | make(RealNum re, RealNum im, Unit unit) | public static Quantity | make(double re, double im, Unit unit) | public Numeric | mul(Object y) | public Numeric | mulReversed(Numeric x) | public Numeric | neg() | abstract public Complex | number() | public RealNum | re() The value of the real component, as a RealNum. | final public double | reValue() The value of the real component, as a double.
This is relative to the unit().dims - i.e. | public static Quantity | times(Quantity x, Quantity y) | public String | toString(int radix) | public Unit | unit() |
doubleImagValue | public double doubleImagValue()(Code) | | The value of the imaginary component, as a double.
This is relative to the unit().dims - i.e. unit()/doubleValue()
is factored in.
|
doubleValue | public double doubleValue()(Code) | | The value of the real component, as a double.
This is relative to the unit().dims - i.e. unit()/doubleValue()
is factored in.
|
im | public RealNum im()(Code) | | The value of the imaginary component, as a RealNum.
The unit() is not factored in, so you actually need to multiply
by unit() to get the true imaginary component.
|
imValue | final public double imValue()(Code) | | The value of the imaginary component, as a double.
This is relative to the unit().dims - i.e. unit().doubleValue()
is factored in.
A final alias for the virtual doubleImagValue.
|
re | public RealNum re()(Code) | | 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.
|
reValue | final public double reValue()(Code) | | The value of the real component, as a double.
This is relative to the unit().dims - i.e. unit().doubleValue()
is factored in.
A final alias for the virtual doubleValue.
|
|
|