



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
Results
| Original | 25.6 |
|---|---|
| Target | 0.6 |
| Herbie | 25.1 |
if (/ (+ (* a c) (* b d)) (+ (* c c) (* d d))) < 2.0274961721016452e+303Initial program 13.7
rmApplied add-sqr-sqrt13.7
Applied associate-/r*13.6
Taylor expanded around inf 13.6
if 2.0274961721016452e+303 < (/ (+ (* a c) (* b d)) (+ (* c c) (* d d))) Initial program 62.1
rmApplied add-sqr-sqrt62.1
Applied associate-/r*62.1
Taylor expanded around inf 62.1
Taylor expanded around inf 60.2
Final simplification25.1
Time bar (total: 25.4s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 25.6 | 25.1 | 23.1 | 2.5 | 19.1% |
herbie shell --seed 2018263
(FPCore (a b c d)
:name "Complex division, real part"
:herbie-target
(if (< (fabs d) (fabs c)) (/ (+ a (* b (/ d c))) (+ c (* d (/ d c)))) (/ (+ b (* a (/ c d))) (+ d (* c (/ c d)))))
(/ (+ (* a c) (* b d)) (+ (* c c) (* d d))))