



Bits error versus re




Bits error versus im
| Original | 38.0 |
|---|---|
| Comparison | 33.4 |
| Herbie | 19.6 |
if re < -5.237492387957813e+116Initial program 60.9
rmApplied flip-+ 60.9
Applied associate-*r/ 60.9
Applied sqrt-div 60.9
Applied simplify 47.0
Applied taylor 20.8
Taylor expanded around -inf 20.8
Applied simplify 20.8
if -5.237492387957813e+116 < re < -2.321564696919607e-245Initial program 39.1
rmApplied flip-+ 39.0
Applied simplify 30.2
if -2.321564696919607e-245 < re < -2.837848394186995e-306Initial program 30.2
Applied taylor 0
Taylor expanded around 0 0
if -2.837848394186995e-306 < re < 6.000404463137166e+126Initial program 20.2
if 6.000404463137166e+126 < re Initial program 55.1
Applied taylor 0.0
Taylor expanded around inf 0.0
Time bar (total: 11.7s) Debug logProfile
Please include this information when filing a bug report:
herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (re im)
:name "math.sqrt on complex, real part"
:target
(if (< re 0) (* 0.5 (* (sqrt 2) (sqrt (/ (sqr im) (- (sqrt (+ (sqr re) (sqr im))) re))))) (* 0.5 (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))
(* 0.5 (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))