ph-math/src/main/java/com/helger/numbercruncher/mathutils/Complex.java
public Complex divide (final Complex z)
  {
    final float denom = z.real () * z.real () + z.imaginary () * z.imaginary ();
    final float qr = (m_fReal * z.real () + m_fImaginary * z.imaginary ()) / denom;
    final float qi = (m_fImaginary * z.real () - m_fReal * z.imaginary ()) / denom;

    return new Complex (qr, qi);
  }
public Complex divide (final Complex z)
  {
    final float denom = z.real () * z.real () + z.imaginary () * z.imaginary ();
    final float qr = (m_fReal * z.real () + m_fImaginary * z.imaginary ()) / denom;
    final float qi = (m_fImaginary * z.real () - m_fReal * z.imaginary ()) / denom;

    return new Complex (qr, qi);
  }
Divide this complex number by another one.

@param z
the other complex number
@return a new complex number that is the quotient