


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -6.341219225938887e+106Initial program 45.4
Simplified45.4
Taylor expanded around -inf 3.1
if -6.341219225938887e+106 < b_2 < 3.716361878826334e-131Initial program 11.6
Simplified11.6
rmApplied div-sub11.6
if 3.716361878826334e-131 < b_2 Initial program 49.8
Simplified49.8
rmApplied div-sub50.4
Taylor expanded around inf 12.4
Final simplification10.7
herbie shell --seed 2019008
(FPCore (a b_2 c)
:name "quad2p (problem 3.2.1, positive)"
(/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
Time bar (total: 15.9s)Debug log
1 calls. Slowest were:
| 46.0ms | (/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 34.5b
Found 4 expressions with local error:
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.0b | (- (* b_2 b_2) (* a c)) |
| 1.0b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.1b | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
4 calls. Slowest were:
| 41.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 21.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 6.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
4 calls. Slowest were:
| 72.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 48.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 20.0ms | (- (* b_2 b_2) (* a c)) |
24 calls. Slowest were:
| 267.0ms | (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* b_2 b_2)) |
| 216.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 157.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 6.9b
Found 4 expressions with local error:
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.6b | (- (/ (sqrt (- (* b_2 b_2) (* a c))) a) (/ b_2 a)) |
| 1.0b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
4 calls. Slowest were:
| 12.0ms | (- (/ (sqrt (- (* b_2 b_2) (* a c))) a) (/ b_2 a)) |
| 9.0ms | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 3.0ms | (- (* b_2 b_2) (* a c)) |
4 calls. Slowest were:
| 71.0ms | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 46.0ms | (- (/ (sqrt (- (* b_2 b_2) (* a c))) a) (/ b_2 a)) |
| 44.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 31.0ms | (- (* b_2 b_2) (* a c)) |
35 calls. Slowest were:
| 260.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 246.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 214.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 6.9b
Found 4 expressions with local error:
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.0b | (- (* b_2 b_2) (* a c)) |
4 calls. Slowest were:
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
4 calls. Slowest were:
| 48.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 44.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 37.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 23.0ms | (- (* b_2 b_2) (* a c)) |
31 calls. Slowest were:
| 307.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 304.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 295.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 6.9b
Found 4 expressions with local error:
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 23.3b | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.6b | (- (/ (sqrt (- (* b_2 b_2) (* a c))) a) (/ b_2 a)) |
4 calls. Slowest were:
| 24.0ms | (- (/ (sqrt (- (* b_2 b_2) (* a c))) a) (/ b_2 a)) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
4 calls. Slowest were:
| 56.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 55.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 55.0ms | (- (/ (sqrt (- (* b_2 b_2) (* a c))) a) (/ b_2 a)) |
| 45.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
39 calls. Slowest were:
| 330.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 284.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 269.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 6.9b
81.8% (5.1b remaining)
Error of 10.7b against oracle of 5.6b and baseline of 33.6b