Average Error: 45.0 → 13.7
Time: 41.5s
Precision: 64
Internal Precision: 2432
\[(x \cdot y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
\[\log \left(e^{\left(\left((x \cdot y + z)_* - y \cdot x\right) - z\right) - 1}\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original45.0
Target0
Herbie13.7
\[-1\]

Derivation

  1. Initial program 45.0

    \[(x \cdot y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
  2. Using strategy rm
  3. Applied add-log-exp46.8

    \[\leadsto (x \cdot y + z)_* - \color{blue}{\log \left(e^{1 + \left(x \cdot y + z\right)}\right)}\]
  4. Applied add-log-exp47.3

    \[\leadsto \color{blue}{\log \left(e^{(x \cdot y + z)_*}\right)} - \log \left(e^{1 + \left(x \cdot y + z\right)}\right)\]
  5. Applied diff-log47.3

    \[\leadsto \color{blue}{\log \left(\frac{e^{(x \cdot y + z)_*}}{e^{1 + \left(x \cdot y + z\right)}}\right)}\]
  6. Applied simplify34.9

    \[\leadsto \log \color{blue}{\left(e^{\left((x \cdot y + z)_* - y \cdot x\right) - \left(z + 1\right)}\right)}\]
  7. Using strategy rm
  8. Applied associate--r+13.7

    \[\leadsto \log \left(e^{\color{blue}{\left(\left((x \cdot y + z)_* - y \cdot x\right) - z\right) - 1}}\right)\]

Runtime

Time bar (total: 41.5s)Debug logProfile

herbie shell --seed '#(1070833653 108281690 3330367898 3632331308 3494323072 43156186)' 
(FPCore (x y z)
  :name "simple fma test"

  :herbie-target
  -1

  (- (fma x y z) (+ 1 (+ (* x y) z))))