



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
| Original | 25.6 |
|---|---|
| Target | 0.5 |
| Herbie | 13.4 |
if (* (* (cbrt (/ (- (* b c) (* a d)) (hypot c d))) (/ (cbrt (/ (- (* b c) (* a d)) (hypot c d))) (hypot c d))) (cbrt (/ (- (* c b) (* a d)) (hypot c d)))) < -1.7787867425133029e+308Initial program 62.9
rmApplied add-sqr-sqrt62.9
Applied *-un-lft-identity62.9
Applied times-frac62.9
Applied simplify62.9
Applied simplify61.9
Taylor expanded around inf 48.8
Applied simplify48.7
if -1.7787867425133029e+308 < (* (* (cbrt (/ (- (* b c) (* a d)) (hypot c d))) (/ (cbrt (/ (- (* b c) (* a d)) (hypot c d))) (hypot c d))) (cbrt (/ (- (* c b) (* a d)) (hypot c d)))) < 1.7733770411415807e+308Initial program 13.2
rmApplied add-sqr-sqrt13.2
Applied *-un-lft-identity13.2
Applied times-frac13.2
Applied simplify13.2
Applied simplify1.6
rmApplied fma-neg1.6
if 1.7733770411415807e+308 < (* (* (cbrt (/ (- (* b c) (* a d)) (hypot c d))) (/ (cbrt (/ (- (* b c) (* a d)) (hypot c d))) (hypot c d))) (cbrt (/ (- (* c b) (* a d)) (hypot c d)))) Initial program 62.0
rmApplied add-sqr-sqrt62.0
Applied *-un-lft-identity62.0
Applied times-frac62.0
Applied simplify62.0
Applied simplify62.0
Taylor expanded around 0 48.2
Applied simplify48.1
Time bar (total: 1.2m)Debug logProfile
herbie shell --seed 2018206 +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))))