\[\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)\]
Test:
math.sin on complex, real part
Bits:
128 bits
Bits error versus re
Bits error versus im
Time: 16.3 s
Input Error: 0.0
Output Error: 0.1
Log:
Profile: 🕒
\(\left(0.5 \cdot \sin re\right) \cdot \sqrt[3]{{\left(e^{im} + e^{-im}\right)}^3}\)
  1. Started with
    \[\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)\]
    0.0
  2. Using strategy rm
    0.0
  3. Applied add-cbrt-cube to get
    \[\left(0.5 \cdot \sin re\right) \cdot \color{red}{\left(e^{0 - im} + e^{im}\right)} \leadsto \left(0.5 \cdot \sin re\right) \cdot \color{blue}{\sqrt[3]{{\left(e^{0 - im} + e^{im}\right)}^3}}\]
    0.1
  4. Applied simplify to get
    \[\left(0.5 \cdot \sin re\right) \cdot \sqrt[3]{\color{red}{{\left(e^{0 - im} + e^{im}\right)}^3}} \leadsto \left(0.5 \cdot \sin re\right) \cdot \sqrt[3]{\color{blue}{{\left(e^{im} + e^{-im}\right)}^3}}\]
    0.1

Original test:


(lambda ((re default) (im default))
  #:name "math.sin on complex, real part"
  (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))))