



Bits error versus re




Bits error versus im
| Original | 37.8 |
|---|---|
| Target | 33.1 |
| Herbie | 25.6 |
if (* 2.0 (+ im re)) < 2.1457553395124068e-243Initial program 45.7
rmApplied add-sqr-sqrt45.7
Applied sqrt-prod46.4
rmApplied flip-+46.4
Applied associate-*r/46.4
Applied sqrt-div46.5
Applied simplify35.6
Applied simplify35.6
if 2.1457553395124068e-243 < (* 2.0 (+ im re)) < 1.6654288648687068e+156Initial program 4.9
rmApplied add-sqr-sqrt4.9
Applied sqrt-prod5.0
if 1.6654288648687068e+156 < (* 2.0 (+ im re)) < 5.709530331370493e+234Initial program 61.4
Taylor expanded around 0 26.7
if 5.709530331370493e+234 < (* 2.0 (+ im re)) Initial program 61.2
Taylor expanded around inf 30.5
Time bar (total: 33.2s)Debug logProfile
herbie shell --seed '#(1064173506 2580572819 2847706409 4129882574 1125180799 1845288547)'
(FPCore (re im)
:name "math.sqrt on complex, real part"
:herbie-target
(if (< re 0) (* 0.5 (* (sqrt 2) (sqrt (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))) (* 0.5 (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))
(* 0.5 (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))