Average Error: 0.0 → 0.0
Time: 12.4s
Precision: 64
Internal Precision: 320
\[e^{re} \cdot \cos im\]
\[\sqrt{e^{re}} \cdot \left(\sqrt{e^{re}} \cdot \cos im\right)\]

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

    \[e^{re} \cdot \cos im\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.0

    \[\leadsto \color{blue}{\left(\sqrt{e^{re}} \cdot \sqrt{e^{re}}\right)} \cdot \cos im\]
  4. Applied associate-*l*0.0

    \[\leadsto \color{blue}{\sqrt{e^{re}} \cdot \left(\sqrt{e^{re}} \cdot \cos im\right)}\]

Runtime

Time bar (total: 12.4s)Debug logProfile

herbie shell --seed '#(1072936661 1621281212 3440817831 3219514234 460296804 1258167384)' 
(FPCore (re im)
  :name "math.exp on complex, real part"
  (* (exp re) (cos im)))