



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
Results
| Original | 25.5 |
|---|---|
| Target | 0.5 |
| Herbie | 25.2 |
if (/ (- (* b c) (* a d)) (+ (* c c) (* d d))) < 2.4669126810910664e+285Initial program 14.3
Initial simplification14.3
Taylor expanded around inf 14.3
if 2.4669126810910664e+285 < (/ (- (* b c) (* a d)) (+ (* c c) (* d d))) Initial program 61.0
Initial simplification61.0
Taylor expanded around inf 61.0
rmApplied add-sqr-sqrt61.0
Applied *-un-lft-identity61.0
Applied times-frac61.0
Taylor expanded around -inf 59.9
Simplified59.9
Final simplification25.2
Time bar (total: 20.8s)Debug logProfile
herbie shell --seed 2018255
(FPCore (a b c d)
:name "Complex division, imag part"
:herbie-target
(if (< (fabs d) (fabs c)) (/ (- b (* a (/ d c))) (+ c (* d (/ d c)))) (/ (+ (- a) (* b (/ c d))) (+ d (* c (/ c d)))))
(/ (- (* b c) (* a d)) (+ (* c c) (* d d))))