gnu.math

Class CComplex

Implemented Interfaces:
Externalizable

public class CComplex
extends Complex
implements Externalizable

General Cartesian Complex number. Use this instead of DComplex if you want exact complex numbers.

Field Summary

Fields inherited from class gnu.math.Numeric

CEILING, FLOOR, ROUND, TRUNCATE

Constructor Summary

CComplex()
CComplex(RealNum real, RealNum imag)

Method Summary

RealNum
im()
RealNum
re()
void
readExternal(ObjectInput in)
void
writeExternal(ObjectOutput out)

Methods inherited from class gnu.math.Complex

abs, add, add, addReversed, angle, compare, compare, div, divReversed, divide, 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

abs, add, add, addReversed, compare, compare, compareReversed, dimensions, div, divReversed, divide, doubleImagValue, doubleValue, im, imValue, make, make, make, mul, mulReversed, neg, number, re, reValue, times, toString, unit

Methods inherited from class gnu.math.Numeric

abs, add, add, addReversed, compare, compareReversed, div, divReversed, div_inv, equals, floatValue, geq, grt, intValue, isExact, isZero, longValue, mul, mulReversed, mul_ident, neg, power, sub, toString, toString

Constructor Details

CComplex

public CComplex()

CComplex

public CComplex(RealNum real,
                RealNum imag)

Method Details

im

public RealNum im()
Overrides:
im in interface Quantity

re

public RealNum re()
Overrides:
re in interface Quantity

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException