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

Error

Bits error versus re

Bits error versus im

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(0.5 \cdot \cos re\right) \cdot \left(e^{-im} + e^{im}\right)\]
  2. Initial simplification0.0

    \[\leadsto 0.5 \cdot \left(e^{im} \cdot \cos re + \frac{\cos re}{e^{im}}\right)\]
  3. Final simplification0.0

    \[\leadsto \left(\cos re \cdot e^{im} + \frac{\cos re}{e^{im}}\right) \cdot 0.5\]

Runtime

Time bar (total: 51.1s)Debug logProfile

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