Average Error: 45.3 → 0
Time: 3.4s
Precision: 64
Internal Precision: 2432
\[(x \cdot y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
\[\log \left(\frac{1}{e}\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original45.3
Target0
Herbie0
\[-1\]

Derivation

  1. Initial program 45.3

    \[(x \cdot y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
  2. Applied simplify29.2

    \[\leadsto \color{blue}{\left(z - 1\right) - z}\]
  3. Using strategy rm
  4. Applied add-log-exp29.2

    \[\leadsto \color{blue}{\log \left(e^{\left(z - 1\right) - z}\right)}\]
  5. Applied simplify0

    \[\leadsto \log \color{blue}{\left(\frac{1}{e}\right)}\]

Runtime

Time bar (total: 3.4s)Debug logProfile

herbie shell --seed '#(1070131407 1246090267 3027482374 2150728003 2026520792 2347815650)' +o rules:numerics
(FPCore (x y z)
  :name "simple fma test"

  :herbie-target
  -1

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