Average Error: 0.1 → 0.1
Time: 7.7s
Precision: 64
Internal Precision: 2432
\[x + \frac{\left|y - x\right|}{2.0}\]
\[x + \frac{\left|y - x\right|}{2.0}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.1
Target0.1
Herbie0.1
\[x + \frac{\left|y - x\right|}{2.0}\]

Derivation

  1. Initial program 0.1

    \[x + \frac{\left|y - x\right|}{2.0}\]

Runtime

Time bar (total: 7.7s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x y)
  :name "Graphics.Rendering.Chart.Plot.AreaSpots:renderSpotLegend from Chart-1.5.3"

  :herbie-target
  (+ x (/ (fabs (- y x)) 2.0))

  (+ x (/ (fabs (- y x)) 2.0)))