Average Error: 12.5 → 0.0
Time: 36.6s
Precision: 64
Internal Precision: 1664
\[\left(\left(x \cdot y - y \cdot y\right) + y \cdot y\right) - y \cdot z\]
\[\left(x - z\right) \cdot y\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original12.5
Target0.0
Herbie0.0
\[\left(x - z\right) \cdot y\]

Derivation

  1. Initial program 12.5

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

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

Runtime

Time bar (total: 36.6s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit
(FPCore (x y z)
  :name "Linear.Quaternion:$c/ from linear-1.19.1.3, D"

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

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