All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----pmr.euclid.Status | +----pmr.euclid.Real2 | +----pmr.euclid.Complex
Complex - complex number - derived from Real2
Complex represents a complex number. A reasonable number of arithmetic operations are included - DeMoivre's theorem is used for some of them so there may be quicker implementations elsewhere.
public Complex()
public Complex(double a)
public Complex(double a,
double b)
public Complex(Real2 a)
public Complex(double r,
Angle th)
public Complex(Polar p)
public Complex(Complex a)
public double getReal()
public void negative()
public Complex multiply(Complex f)
public Complex divideBy(Complex f) throwsArithmeticException
public double getR()
public Angle getTheta()
public Polar getPolar()
public static Complex sqrt(Complex a)
publicString toString()
All Packages Class Hierarchy This Package Previous Next Index