


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -1.4031947752424545e+120 or -3.8264402218067264e-70 < b_2 < -2.9566045583213624e-91Initial program 58.3
rmApplied div-sub59.0
rmApplied div-inv59.2
Taylor expanded around -inf 3.7
if -1.4031947752424545e+120 < b_2 < -3.8264402218067264e-70Initial program 42.9
rmApplied flip--43.0
Applied associate-/l/45.5
Simplified16.0
if -2.9566045583213624e-91 < b_2 < 1.2243609558936807e+127Initial program 11.8
rmApplied div-sub11.8
if 1.2243609558936807e+127 < b_2 Initial program 52.5
rmApplied div-sub52.5
rmApplied clear-num52.5
Taylor expanded around 0 2.9
Final simplification9.4
herbie shell --seed 2019007
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
Time bar (total: 19.7s)Debug log
1 calls. Slowest were:
| 29.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.8b
Found 4 expressions with local error:
| 24.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.7b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
4 calls. Slowest were:
| 16.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 6.0ms | (- (- b_2) (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))) |
| 53.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 42.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 21.0ms | (- (* b_2 b_2) (* a c)) |
32 calls. Slowest were:
| 270.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 224.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 194.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 6.1b
Found 4 expressions with local error:
| 24.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 6.6b | (- (/ (- b_2) a) (/ (sqrt (- (* b_2 b_2) (* a c))) a)) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
4 calls. Slowest were:
| 16.0ms | (- (/ (- b_2) a) (/ (sqrt (- (* b_2 b_2) (* a c))) a)) |
| 6.0ms | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
4 calls. Slowest were:
| 82.0ms | (- (/ (- b_2) a) (/ (sqrt (- (* b_2 b_2) (* a c))) a)) |
| 66.0ms | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 42.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 22.0ms | (- (* b_2 b_2) (* a c)) |
36 calls. Slowest were:
| 302.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 268.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 254.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 6.1b
Found 4 expressions with local error:
| 24.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 10.1b | (- (/ (- b_2) a) (/ 1 (/ a (sqrt (- (* b_2 b_2) (* a c)))))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.2b | (/ 1 (/ a (sqrt (- (* b_2 b_2) (* a c))))) |
4 calls. Slowest were:
| 5.0ms | (- (/ (- b_2) a) (/ 1 (/ a (sqrt (- (* b_2 b_2) (* a c)))))) |
| 2.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
4 calls. Slowest were:
| 80.0ms | (- (/ (- b_2) a) (/ 1 (/ a (sqrt (- (* b_2 b_2) (* a c)))))) |
| 52.0ms | (/ 1 (/ a (sqrt (- (* b_2 b_2) (* a c))))) |
| 49.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 34.0ms | (- (* b_2 b_2) (* a c)) |
35 calls. Slowest were:
| 287.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 257.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 136.0ms | (sqrt (+ (* (* b_2 b_2) (* b_2 b_2)) (+ (* (* a c) (* a c)) (* (* b_2 b_2) (* a c))))) |
12 alts after pruning (10 fresh and 2 done)
Merged error: 6.1b
Found 4 expressions with local error:
| 24.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 10.9b | (- (/ (- b_2) a) (* (sqrt (- (* b_2 b_2) (* a c))) (/ 1 a))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.3b | (* (sqrt (- (* b_2 b_2) (* a c))) (/ 1 a)) |
4 calls. Slowest were:
| 8.0ms | (- (/ (- b_2) a) (* (sqrt (- (* b_2 b_2) (* a c))) (/ 1 a))) |
| 6.0ms | (* (sqrt (- (* b_2 b_2) (* a c))) (/ 1 a)) |
| 2.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
4 calls. Slowest were:
| 76.0ms | (* (sqrt (- (* b_2 b_2) (* a c))) (/ 1 a)) |
| 59.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 58.0ms | (- (/ (- b_2) a) (* (sqrt (- (* b_2 b_2) (* a c))) (/ 1 a))) |
| 36.0ms | (- (* b_2 b_2) (* a c)) |
55 calls. Slowest were:
| 702.0ms | (- (* (- b_2) (sqrt (+ (* b_2 b_2) (* a c)))) (* a (* (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) (/ 1 a)))) |
| 433.0ms | (- (* (- b_2) (* (sqrt (+ (* b_2 b_2) (* a c))) a)) (* a (* (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) 1))) |
| 377.0ms | (* (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) (/ 1 a)) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 6.1b
86.4% (3.9b remaining)
Error of 9.4b against oracle of 5.5b and baseline of 34.0b