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

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 y\right) - y \cdot z\right) - y \cdot y\]
  2. Applied simplify 0.0

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

Runtime

Time bar (total: 12.0s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2816347124 3950225154 102257049 3986937545 456962746 1700258427)'
(FPCore (x y z)
  :name "Linear.Quaternion:$c/ from linear-1.19.1.3, C"

  :target
  (* (- x z) y)

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