\[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\]
Test:
_divideComplex, imaginary part
Bits:
128 bits
Bits error versus x.re
Bits error versus x.im
Bits error versus y.re
Bits error versus y.im
Time: 8.7 s
Input Error: 26.1
Output Error: 26.3
Log:
Profile: 🕒
\(\frac{1}{\frac{(y.im * y.im + \left(y.re \cdot y.re\right))_*}{y.re \cdot x.im - y.im \cdot x.re}}\)
  1. Started with
    \[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\]
    26.1
  2. Applied simplify to get
    \[\color{red}{\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}} \leadsto \color{blue}{\frac{y.re \cdot x.im - y.im \cdot x.re}{(y.im * y.im + \left(y.re \cdot y.re\right))_*}}\]
    26.1
  3. Using strategy rm
    26.1
  4. Applied clear-num to get
    \[\color{red}{\frac{y.re \cdot x.im - y.im \cdot x.re}{(y.im * y.im + \left(y.re \cdot y.re\right))_*}} \leadsto \color{blue}{\frac{1}{\frac{(y.im * y.im + \left(y.re \cdot y.re\right))_*}{y.re \cdot x.im - y.im \cdot x.re}}}\]
    26.3

  5. Removed slow pow expressions

Original test:


(lambda ((x.re default) (x.im default) (y.re default) (y.im default))
  #:name "_divideComplex, imaginary part"
  (/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))