Average Error: 0.0 → 0.1
Time: 11.0s
Precision: 64
Internal precision: 384
\[\left(0.5 \cdot \cos re\right) \cdot \left(e^{-im} + e^{im}\right)\]
\[\left(0.5 \cdot \cos re\right) \cdot \sqrt[3]{{\left(e^{-im} + e^{im}\right)}^3}\]

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-cbrt-cube 0.1

    \[\leadsto \left(0.5 \cdot \cos re\right) \cdot \color{blue}{\sqrt[3]{{\left(e^{-im} + e^{im}\right)}^3}}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 11.0s) 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.cos on complex, real part"
  (* (* 0.5 (cos re)) (+ (exp (- im)) (exp im))))