



Bits error versus x




Bits error versus y
| Original | 21.9 |
|---|---|
| Target | 0.5 |
| Herbie | 0.0 |
if x < -1.33525539405981467e154Initial program 64.0
Taylor expanded around -inf 0
Simplified0
if -1.33525539405981467e154 < x < 9.94522109174082653e135Initial program 0.0
if 9.94522109174082653e135 < x Initial program 57.4
Taylor expanded around inf 0.1
Simplified0.1
Final simplification0.0
herbie shell --seed 2020181
(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)))