operator / abstract method

Complex operator /(
  1. Object divisor
)

Returns a Complex whose value is (this / divisor). Implements the definitional formula

  a + bi       ac + bd + (bc - ad)i
---------- = ------------------------
  c + di           c^2 + d^2

but uses prescaling of operands to limit the effects of overflows and underflows in the computation.

Infinite and NaN values are handled according to the following rules, applied in the order presented:

  • If either this or divisor has a NaN value in either part, nan is returned.
  • If divisor equals zero, nan is returned.
  • If this and divisor are both infinite, nan is returned.
  • If this is finite (i.e., has no Infinite or NAN parts) and divisor is infinite (one or both parts infinite), zero is returned.
  • If this is infinite and divisor is finite, NAN values are returned in the parts of the result if the double rules applied to the definitional formula force NaN results.

Implementation

Complex operator /(Object divisor);