



Bits error versus re




Bits error versus im
| Original | 37.0 |
|---|---|
| Target | 32.3 |
| Herbie | 22.7 |
if re < -1.4298938136021143e+154Initial program 62.3
rmApplied add-exp-log62.3
Taylor expanded around -inf 43.4
Applied simplify30.4
if -1.4298938136021143e+154 < re < -1.2337918923489249e-303Initial program 39.0
rmApplied add-sqr-sqrt39.0
Applied sqrt-prod39.7
rmApplied flip-+39.6
Applied associate-*r/39.7
Applied sqrt-div39.8
Applied simplify29.0
Applied simplify29.0
if -1.2337918923489249e-303 < re < 7.151232164906074e+114Initial program 19.5
rmApplied add-sqr-sqrt19.5
Applied sqrt-prod19.6
if 7.151232164906074e+114 < re Initial program 51.4
Taylor expanded around inf 8.3
Time bar (total: 36.4s)Debug logProfile
herbie shell --seed '#(1070227846 1561819246 480764335 4016816270 2602869839 2117310382)'
(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)))))