



Bits error versus re




Bits error versus im
| Original | 37.8 |
|---|---|
| Target | 32.6 |
| Herbie | 25.2 |
if (* 2.0 (+ im re)) < -9.728340211879264e-198Initial program 44.3
rmApplied flip-+44.4
Applied simplify33.6
if -9.728340211879264e-198 < (* 2.0 (+ im re)) < 2.0057226295806305e+144Initial program 8.6
rmApplied add-cube-cbrt9.2
rmApplied add-cube-cbrt9.1
Applied sqrt-prod9.1
Applied cbrt-prod9.1
Applied simplify9.1
if 2.0057226295806305e+144 < (* 2.0 (+ im re)) Initial program 58.2
Taylor expanded around 0 26.5
Time bar (total: 42.6s)Debug logProfile
herbie shell --seed '#(1070386091 2509006183 1430610344 1025408621 36622005 1425925650)'
(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)))))