Average Error: 0.0 → 0.0
Time: 7.0s
Precision: 64
Internal Precision: 384
\[x - \frac{y}{1.0 + \frac{x \cdot y}{2.0}}\]
\[x - \frac{y}{1.0 + \frac{x \cdot y}{2.0}}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Target0.0
Herbie0.0
\[x - \frac{y}{1.0 + \frac{x \cdot y}{2.0}}\]

Derivation

  1. Initial program 0.0

    \[x - \frac{y}{1.0 + \frac{x \cdot y}{2.0}}\]

Runtime

Time bar (total: 7.0s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x y)
  :name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, B"

  :herbie-target
  (- x (/ y (+ 1.0 (/ (* x y) 2.0))))

  (- x (/ y (+ 1.0 (/ (* x y) 2.0)))))