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

Error

Bits error versus re

Bits error versus im

Try it out

  1. Inputs

  2. Original Output:

    Herbie Output:

Derivation

  1. Initial program 0.0

    \[\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{\left(e^{im} + e^{-im}\right) \cdot \left(0.5 \cdot \sin re\right)}\]

Runtime

Time bar (total: 24.9s)Debug logProfile

herbie shell --seed '#(1072361757 3390613284 2339397988 1175251238 145061547 3101881848)' +o rules:numerics
(FPCore (re im)
  :name "math.sin on complex, real part"
  (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))))