



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
Results
| Original | 25.5 |
|---|---|
| Target | 0.4 |
| Herbie | 12.9 |
if (* (expm1 (log1p (/ 1 (hypot c d)))) (/ (- (* c b) (* a d)) (hypot c d))) < -1.7770805725111145e+308 or 1.7752851147652889e+308 < (* (expm1 (log1p (/ 1 (hypot c d)))) (/ (- (* c b) (* a d)) (hypot c d))) Initial program 62.5
rmApplied add-sqr-sqrt62.5
Applied *-un-lft-identity62.5
Applied times-frac62.5
Applied simplify62.5
Applied simplify62.0
Taylor expanded around 0 48.8
Applied simplify48.8
if -1.7770805725111145e+308 < (* (expm1 (log1p (/ 1 (hypot c d)))) (/ (- (* c b) (* a d)) (hypot c d))) < 1.7752851147652889e+308Initial program 13.6
rmApplied add-sqr-sqrt13.6
Applied *-un-lft-identity13.6
Applied times-frac13.6
Applied simplify13.6
Applied simplify1.5
rmApplied associate-*r/1.4
Applied simplify1.3
Time bar (total: 49.1s)Debug logProfile
herbie shell --seed 2018167 +o rules:numerics
(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))))