Average Error: 0.0 → 0.0
Time: 4.6s
Precision: binary64
\[\]
\[\]

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[\]
  2. Using strategy rm
  3. Applied distribute-lft-in0.0

    \[\leadsto \]
  4. Simplified0.0

    \[\leadsto \]
  5. Simplified0.0

    \[\leadsto \]
  6. Final simplification0.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (re im)
  :name "math.cos on complex, real part"
  :precision binary64
  (* (* 0.5 (cos re)) (+ (exp (neg im)) (exp im))))