\[\log \left(\sqrt{re \cdot re + im \cdot im}\right)\]
Test:
math.log/1 on complex, real part
Bits:
128 bits
Bits error versus re
Bits error versus im
Time: 1.0 s
Input Error: 30.8
Output Error: 0
Log:
Profile: 🕒
\(\log \left(\sqrt{im^2 + re^2}^*\right)\)
  1. Started with
    \[\log \left(\sqrt{re \cdot re + im \cdot im}\right)\]
    30.8
  2. Applied simplify to get
    \[\color{red}{\log \left(\sqrt{re \cdot re + im \cdot im}\right)} \leadsto \color{blue}{\log \left(\sqrt{im^2 + re^2}^*\right)}\]
    0

Original test:


(lambda ((re default) (im default))
  #:name "math.log/1 on complex, real part"
  (log (sqrt (+ (* re re) (* im im)))))