Average Error: 0.0 → 0.0
Time: 13.5s
Precision: 64
Internal precision: 128
\[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
Comparison0.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}}\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 13.5s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2298581932 1557749791 1450720758 1324867476 1949808473 674133709)'
(FPCore (x y)
  :name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, B"

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

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