Package gnu.math
Class CComplex
- java.lang.Object
-
- java.lang.Number
-
- gnu.math.Numeric
-
- gnu.math.Quantity
-
- gnu.math.Quaternion
-
- gnu.math.Complex
-
- gnu.math.CComplex
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CComplex extends Complex implements Externalizable
General Cartesian Complex number. Use this instead of DComplex if you want exact complex numbers.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealNumim()The value of the imaginary component, as a RealNum.RealNumre()The value of the real component, as a RealNum.voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)-
Methods inherited from class gnu.math.Complex
abs, add, add, addReversed, angle, classifyFinite, colatitude, compare, compare, complexPart, conjugate, cos, div, divide, divReversed, equals, equals, exp, imMinusOne, imOne, isExact, isZero, jm, km, log, longitude, make, make, mul, mulReversed, neg, neg, polar, polar, power, sin, sqrt, tan, times, toExact, toInexact, toString, unitQuaternion, unitVector, vectorPart
-
Methods inherited from class gnu.math.Quaternion
add, compare, divide, doubleImagValue, doubleJmagValue, doubleKmagValue, doubleRealValue, doubleValue, equals, jmMinusOne, jmOne, kmMinusOne, kmOne, longValue, make, make, neg, number, polar, polar, power, times
-
Methods inherited from class gnu.math.Quantity
add, compare, compareReversed, dimensions, divide, imValue, jmValue, kmValue, make, make, make, reValue, times, unit
-
Methods inherited from class gnu.math.Numeric
add, asNumericOrNull, div_inv, floatValue, geq, grt, intValue, mul_ident, power, sub, toString
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Method Detail
-
re
public RealNum re()
Description copied from class:QuantityThe 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.
-
im
public RealNum im()
Description copied from class:QuantityThe 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.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-