



Bits error versus x




Bits error versus y
| Original | 21.2 |
|---|---|
| Target | 0.4 |
| Herbie | 0.5 |
if x < -8.9999582525827406e135Initial program 57.1
Taylor expanded around -inf 0.3
Simplified0.3
if -8.9999582525827406e135 < x < 5.73985145420372766e55Initial program 0.0
if 5.73985145420372766e55 < x Initial program 39.5
Taylor expanded around inf 1.7
Simplified1.7
Final simplification0.5
herbie shell --seed 2020179
(FPCore (x y)
:name "Linear.Quaternion:$clog from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< x -1.5097698010472593e+153) (neg (+ (* 0.5 (/ y x)) x)) (if (< x 5.582399551122541e+57) (sqrt (+ (* x x) y)) (+ (* 0.5 (/ y x)) x)))
(sqrt (+ (* x x) y)))