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

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

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

Derivation

  1. Initial program 0.0

    \[x \cdot y + z \cdot \left(1.0 - y\right)\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 14.6s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3667907650 166251179 3031316838 3672504642 715312755 779827654)'
(FPCore (x y z)
  :name "Diagrams.TwoD.Segment:bezierClip from diagrams-lib-1.3.0.3"

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

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