Average Error: 0.1 → 0.1
Time: 7.8s
Precision: 64
Internal Precision: 384
\[\frac{x + y}{y + y}\]
\[\frac{x + y}{y + y}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.1
Target0.0
Herbie0.1
\[\frac{1}{2} \cdot \frac{x}{y} + \frac{1}{2}\]

Derivation

  1. Initial program 0.1

    \[\frac{x + y}{y + y}\]

Runtime

Time bar (total: 7.8s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x y)
  :name "Data.Random.Distribution.T:$ccdf from random-fu-0.2.6.2"

  :herbie-target
  (+ (* 1/2 (/ x y)) 1/2)

  (/ (+ x y) (+ y y)))