



Bits error versus x




Bits error versus y
| Original | 22.3 |
|---|---|
| Target | 0.5 |
| Herbie | 0.1 |
if x < -1.3251322205262078e154Initial program 64.0
Taylor expanded around -inf 0
Simplified0
if -1.3251322205262078e154 < x < 2.497175538071421e116Initial program 0.0
if 2.497175538071421e116 < x Initial program 53.6
Taylor expanded around inf 0.3
Simplified0.3
Final simplification0.1
herbie shell --seed 2020180
(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)))