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

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

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

Derivation

  1. Initial program 16.8

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

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

Runtime

Time bar (total: 15.0s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1597186692 3663889221 810810208 430098508 1895131458 138671996)'
(FPCore (x y z)
  :name "Linear.Quaternion:$c/ from linear-1.19.1.3, B"

  :target
  (* (- x z) y)

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