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

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

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

Derivation

  1. Initial program 0.0

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

    \[\leadsto \left(z \cdot x + y \cdot x\right) - 1.0 \cdot z\]
  3. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{\left(z \cdot x + y \cdot x\right) - 1.0 \cdot z}\]
  4. Applied simplify 0.0

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

Runtime

Time bar (total: 6.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(88777335 843113118 2675027439 3707321805 3462273588 136583178)'
(FPCore (x y z)
  :name "Graphics.Rendering.Chart.Drawing:drawTextsR from Chart-1.5.3"

  :target
  (+ (* x y) (* (- x 1.0) z))

  (+ (* x y) (* (- x 1.0) z)))