Average Error: 0.0 → 0.0
Time: 4.8s
Precision: 64
Internal precision: 128
\[x - \left(y \cdot 4.0\right) \cdot z\]
\[x - 4.0 \cdot \left(y \cdot z\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original0.0
Comparison0.0
Herbie0.0
\[ x - \left(y \cdot 4.0\right) \cdot z \]

Derivation

  1. Initial program 0.0

    \[x - \left(y \cdot 4.0\right) \cdot z\]
  2. Applied taylor 0.0

    \[\leadsto x - 4.0 \cdot \left(y \cdot z\right)\]
  3. Taylor expanded around inf 0.0

    \[\leadsto \color{blue}{x - 4.0 \cdot \left(y \cdot z\right)}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 4.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3728141792 696126407 854740217 1416967315 1969918807 2041172424)'
(FPCore (x y z)
  :name "Diagrams.Solve.Polynomial:quadForm from diagrams-solve-0.1, A"

  :target
  (- x (* (* y 4.0) z))

  (- x (* (* y 4.0) z)))