gnu.math
Class CQuantity
java.lang.Object
   java.lang.Number
java.lang.Number
       gnu.math.Numeric
gnu.math.Numeric
           gnu.math.Quantity
gnu.math.Quantity
               gnu.math.CQuantity
gnu.math.CQuantity
- All Implemented Interfaces: 
- java.io.Externalizable, java.io.Serializable
- public class CQuantity 
- extends Quantity- implements java.io.Externalizable
General Cartesian Complex quantity.
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class gnu.math.Quantity | 
| abs, add, add, addReversed, compare, compare, compareReversed, dimensions, div, divide, divReversed, doubleImagValue, doubleValue, im, imValue, make, make, make, mul, mulReversed, neg, re, reValue, times, 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 | 
 
CQuantity
public CQuantity(Complex num,
                 Unit unit)
CQuantity
public CQuantity(RealNum real,
                 RealNum imag,
                 Unit unit)
number
public Complex number()
- 
- Specified by:
- numberin class- Quantity
 
- 
 
unit
public Unit unit()
- 
- Overrides:
- unitin class- Quantity
 
- 
 
isExact
public boolean isExact()
- 
- Specified by:
- isExactin class- Numeric
 
- 
 
isZero
public boolean isZero()
- 
- Specified by:
- isZeroin class- Numeric
 
- 
 
writeExternal
public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
- 
- Specified by:
- writeExternalin interface- java.io.Externalizable
 
- 
- Throws:
- java.io.IOException
 
readExternal
public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
- 
- Specified by:
- readExternalin interface- java.io.Externalizable
 
- 
- Throws:
- java.io.IOException
- java.lang.ClassNotFoundException