Average Error: 0.0 → 0.0
Time: 12.6s
Precision: 64
Internal precision: 384
\[\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)\]
\[\frac{\sin re}{e^{im}} \cdot 0.5 + \left(0.5 \cdot \sin re\right) \cdot e^{im}\]

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)\]
  2. Using strategy rm
  3. Applied distribute-lft-in 0.0

    \[\leadsto \color{blue}{\left(0.5 \cdot \sin re\right) \cdot e^{0 - im} + \left(0.5 \cdot \sin re\right) \cdot e^{im}}\]
  4. Applied simplify 0.0

    \[\leadsto \color{blue}{\frac{\sin re}{e^{im}} \cdot 0.5} + \left(0.5 \cdot \sin re\right) \cdot e^{im}\]
  5. Removed slow pow expressions

Runtime

Time bar (total: 12.6s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (re im)
  :name "math.sin on complex, real part"
  (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))))