gnu.math
Class CComplex
java.lang.Object
   java.lang.Number
java.lang.Number
       gnu.math.Numeric
gnu.math.Numeric
           gnu.math.Quantity
gnu.math.Quantity
               gnu.math.Complex
gnu.math.Complex
                   gnu.math.CComplex
gnu.math.CComplex
- All Implemented Interfaces: 
- java.io.Externalizable, java.io.Serializable
- public class CComplex 
- extends Complex- implements java.io.Externalizable
General Cartesian Complex number.
 Use this instead of DComplex if you want exact complex numbers.
- See Also:
- Serialized Form
 
 
 
| Method Summary | 
|  RealNum | im()The value of the imaginary component, as a RealNum.
 | 
|  RealNum | re()The value of the real component, as a RealNum.
 | 
|  void | readExternal(java.io.ObjectInput in)
 | 
|  void | writeExternal(java.io.ObjectOutput out)
 | 
 
| Methods inherited from class gnu.math.Complex | 
| abs, add, add, addReversed, angle, compare, compare, div, divide, divReversed, doubleImagValue, doubleRealValue, doubleValue, equals, equals, exp, imMinusOne, imOne, isExact, isZero, log, longValue, make, make, mul, mulReversed, neg, neg, number, polar, polar, power, sqrt, times, toString | 
 
| Methods inherited from class gnu.math.Quantity | 
| add, compare, compareReversed, dimensions, divide, imValue, make, make, make, reValue, times, unit | 
 
 
| 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 | 
 
CComplex
public CComplex()
CComplex
public CComplex(RealNum real,
                RealNum imag)
re
public RealNum re()
- Description copied from class: Quantity
- 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.
 
- 
- Overrides:
- rein class- Quantity
 
- 
 
im
public RealNum im()
- Description copied from class: Quantity
- 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.
 
- 
- Overrides:
- imin class- Quantity
 
- 
 
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