



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
Results
| Original | 26.1 |
|---|---|
| Target | 0.4 |
| Herbie | 13.0 |
if c < -3.8940386072016875e+153Initial program 44.3
Simplified44.3
rmApplied add-sqr-sqrt44.3
Applied *-un-lft-identity44.3
Applied times-frac44.3
Simplified44.3
Simplified29.0
rmApplied associate-*l/29.0
Simplified29.0
rmApplied div-inv29.0
Taylor expanded around -inf 13.1
Simplified13.1
if -3.8940386072016875e+153 < c < 1.092948697378428e+205Initial program 21.2
Simplified21.2
rmApplied add-sqr-sqrt21.2
Applied *-un-lft-identity21.2
Applied times-frac21.2
Simplified21.2
Simplified13.2
rmApplied associate-*l/13.1
Simplified13.1
rmApplied div-inv13.2
if 1.092948697378428e+205 < c Initial program 43.0
Simplified43.0
rmApplied add-sqr-sqrt43.0
Applied *-un-lft-identity43.0
Applied times-frac43.0
Simplified43.0
Simplified31.3
rmApplied associate-*l/31.3
Simplified31.3
Taylor expanded around inf 10.7
Final simplification13.0
herbie shell --seed 2019007 +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))))
Time bar (total: 19.9s)Debug log
1 calls. Slowest were:
| 39.0ms | (/ (- (* b c) (* a d)) (+ (* c c) (* d d))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 27.6b
Found 2 expressions with local error:
| 27.6b | (/ (- (* b c) (* a d)) (fma d d (* c c))) |
| 1.2b | (- (* b c) (* a d)) |
2 calls. Slowest were:
| 12.0ms | (/ (- (* b c) (* a d)) (fma d d (* c c))) |
| 4.0ms | (- (* b c) (* a d)) |
2 calls. Slowest were:
| 95.0ms | (/ (- (* b c) (* a d)) (fma d d (* c c))) |
| 44.0ms | (- (* b c) (* a d)) |
37 calls. Slowest were:
| 470.0ms | (- (* (* b c) (* b c)) (* (* a d) (* a d))) |
| 244.0ms | (/ (* (* (- (* b c) (* a d)) (- (* b c) (* a d))) (- (* b c) (* a d))) (* (* (fma d d (* c c)) (fma d d (* c c))) (fma d d (* c c)))) |
| 203.0ms | (- (pow (* b c) 3) (pow (* a d) 3)) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 17.3b
Found 4 expressions with local error:
| 17.0b | (/ (- (* b c) (* a d)) (hypot d c)) |
| 1.2b | (- (* b c) (* a d)) |
| 0.2b | (* (/ 1 (hypot d c)) (/ (- (* b c) (* a d)) (hypot d c))) |
| 0.0b | (/ 1 (hypot d c)) |
4 calls. Slowest were:
| 7.0ms | (* (/ 1 (hypot d c)) (/ (- (* b c) (* a d)) (hypot d c))) |
| 6.0ms | (/ (- (* b c) (* a d)) (hypot d c)) |
| 2.0ms | (- (* b c) (* a d)) |
4 calls. Slowest were:
| 143.0ms | (* (/ 1 (hypot d c)) (/ (- (* b c) (* a d)) (hypot d c))) |
| 133.0ms | (/ (- (* b c) (* a d)) (hypot d c)) |
| 47.0ms | (- (* b c) (* a d)) |
| 34.0ms | (/ 1 (hypot d c)) |
73 calls. Slowest were:
| 486.0ms | (- (* (* b c) (* b c)) (* (* a d) (* a d))) |
| 266.0ms | (* 1 (/ (- (* b c) (* a d)) (hypot d c))) |
| 252.0ms | (- (pow (* b c) 3) (pow (* a d) 3)) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 6.4b
Found 3 expressions with local error:
| 17.0b | (/ (- (* c b) (* a d)) (hypot d c)) |
| 1.2b | (- (* c b) (* a d)) |
| 0.0b | (/ (/ (- (* c b) (* a d)) (hypot d c)) (hypot d c)) |
3 calls. Slowest were:
| 15.0ms | (/ (/ (- (* c b) (* a d)) (hypot d c)) (hypot d c)) |
| 12.0ms | (/ (- (* c b) (* a d)) (hypot d c)) |
| 4.0ms | (- (* c b) (* a d)) |
3 calls. Slowest were:
| 111.0ms | (/ (- (* c b) (* a d)) (hypot d c)) |
| 95.0ms | (/ (/ (- (* c b) (* a d)) (hypot d c)) (hypot d c)) |
| 32.0ms | (- (* c b) (* a d)) |
139 calls. Slowest were:
| 466.0ms | (- (* (* c b) (* c b)) (* (* a d) (* a d))) |
| 408.0ms | (/ (* (* (/ (- (* c b) (* a d)) (hypot d c)) (/ (- (* c b) (* a d)) (hypot d c))) (/ (- (* c b) (* a d)) (hypot d c))) (* (* (hypot d c) (hypot d c)) (hypot d c))) |
| 367.0ms | (/ (/ (* (* (- (* c b) (* a d)) (- (* c b) (* a d))) (- (* c b) (* a d))) (* (* (hypot d c) (hypot d c)) (hypot d c))) (* (* (hypot d c) (hypot d c)) (hypot d c))) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 6.4b
Found 4 expressions with local error:
| 17.1b | (* (- (* c b) (* a d)) (/ 1 (hypot d c))) |
| 1.2b | (- (* c b) (* a d)) |
| 0.0b | (/ (* (- (* c b) (* a d)) (/ 1 (hypot d c))) (hypot d c)) |
| 0.0b | (/ 1 (hypot d c)) |
4 calls. Slowest were:
| 8.0ms | (/ (* (- (* c b) (* a d)) (/ 1 (hypot d c))) (hypot d c)) |
| 6.0ms | (* (- (* c b) (* a d)) (/ 1 (hypot d c))) |
| 2.0ms | (- (* c b) (* a d)) |
4 calls. Slowest were:
| 67.0ms | (/ (* (- (* c b) (* a d)) (/ 1 (hypot d c))) (hypot d c)) |
| 63.0ms | (* (- (* c b) (* a d)) (/ 1 (hypot d c))) |
| 27.0ms | (- (* c b) (* a d)) |
| 27.0ms | (/ 1 (hypot d c)) |
58 calls. Slowest were:
| 261.0ms | (* (* (* (- (* c b) (* a d)) (- (* c b) (* a d))) (- (* c b) (* a d))) (* (* (/ 1 (hypot d c)) (/ 1 (hypot d c))) (/ 1 (hypot d c)))) |
| 207.0ms | (* (- (* (* c b) (* c b)) (* (* a d) (* a d))) 1) |
| 191.0ms | (* (- (* (* c b) (* c b)) (* (* a d) (* a d))) 1) |
12 alts after pruning (10 fresh and 2 done)
Merged error: 6.4b
36.5% (6.7b remaining)
Error of 13.0b against oracle of 6.2b and baseline of 16.8b