



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
| Original | 26.5 |
|---|---|
| Target | 0.4 |
| Herbie | 27.1 |
if c < -1.30426463031640256e29Initial program 34.8
rmApplied add-sqr-sqrt34.8
Applied *-un-lft-identity34.8
Applied times-frac34.8
Taylor expanded around -inf 36.6
Simplified36.6
if -1.30426463031640256e29 < c Initial program 23.9
rmApplied clear-num24.1
Final simplification27.1
herbie shell --seed 2020182
(FPCore (a b c d)
:name "Complex division, imag part"
:precision binary64
:herbie-target
(if (< (fabs d) (fabs c)) (/ (- b (* a (/ d c))) (+ c (* d (/ d c)))) (/ (+ (neg a) (* b (/ c d))) (+ d (* c (/ c d)))))
(/ (- (* b c) (* a d)) (+ (* c c) (* d d))))