Average Error: 0.0 → 0.0
Time: 28.3s
Precision: 64
Internal Precision: 320
\[\left(0.5 \cdot \cos re\right) \cdot \left(e^{-im} + e^{im}\right)\]
\[\left(0.5 \cdot \cos re\right) \cdot e^{\log \left(e^{-im} + e^{im}\right)}\]

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[\left(0.5 \cdot \cos re\right) \cdot \left(e^{-im} + e^{im}\right)\]
  2. Using strategy rm
  3. Applied add-exp-log0.0

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

Runtime

Time bar (total: 28.3s)Debug logProfile

herbie shell --seed '#(1071215679 2002590028 935158157 1944352234 2656991306 2955288481)' 
(FPCore (re im)
  :name "math.cos on complex, real part"
  (* (* 0.5 (cos re)) (+ (exp (- im)) (exp im))))