


Bits error versus a



Bits error versus b_2



Bits error versus c
if b_2 < -2.8671071746705253e+127Initial program 51.2
Simplified51.2
Taylor expanded around -inf 2.8
Simplified2.8
if -2.8671071746705253e+127 < b_2 < 9.637680726124706e-24Initial program 15.0
Simplified15.0
Taylor expanded around 0 15.0
rmApplied *-un-lft-identity15.0
Applied associate-/l*15.2
if 9.637680726124706e-24 < b_2 Initial program 54.3
Simplified54.3
Taylor expanded around 0 54.3
Taylor expanded around inf 6.8
Final simplification10.7
herbie shell --seed 2019005 +o rules:numerics
(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: 20.4s)Debug log
1 calls. Slowest were:
| 115.0ms | (/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.2b
Found 4 expressions with local error:
| 23.2b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.9b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
4 calls. Slowest were:
| 37.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 20.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 7.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
4 calls. Slowest were:
| 99.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 51.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 40.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 25.0ms | (- (* b_2 b_2) (* a c)) |
31 calls. Slowest were:
| 492.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 421.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 419.0ms | (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* b_2 b_2)) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 6.4b
Found 4 expressions with local error:
| 23.2b | (sqrt (- (pow b_2 2) (* a c))) |
| 0.9b | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 0.4b | (- (pow b_2 2) (* a c)) |
| 0.1b | (/ (- (sqrt (- (pow b_2 2) (* a c))) b_2) a) |
4 calls. Slowest were:
| 64.0ms | (/ (- (sqrt (- (pow b_2 2) (* a c))) b_2) a) |
| 18.0ms | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 4.0ms | (sqrt (- (pow b_2 2) (* a c))) |
4 calls. Slowest were:
| 70.0ms | (/ (- (sqrt (- (pow b_2 2) (* a c))) b_2) a) |
| 56.0ms | (sqrt (- (pow b_2 2) (* a c))) |
| 42.0ms | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 35.0ms | (- (pow b_2 2) (* a c)) |
39 calls. Slowest were:
| 447.0ms | (- (* (sqrt (- (pow b_2 2) (* a c))) (sqrt (- (pow b_2 2) (* a c)))) (* b_2 b_2)) |
| 434.0ms | (sqrt (- (* (pow b_2 2) (pow b_2 2)) (* (* a c) (* a c)))) |
| 339.0ms | (sqrt (- (pow (pow b_2 2) 3) (pow (* a c) 3))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 6.4b
Found 4 expressions with local error:
| 23.2b | (sqrt (- (pow b_2 2) (* a c))) |
| 0.9b | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 0.4b | (- (pow b_2 2) (* a c)) |
| 0.2b | (/ 1 (/ a (- (sqrt (- (pow b_2 2) (* a c))) b_2))) |
4 calls. Slowest were:
| 18.0ms | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 4.0ms | (sqrt (- (pow b_2 2) (* a c))) |
| 4.0ms | (- (pow b_2 2) (* a c)) |
4 calls. Slowest were:
| 101.0ms | (/ 1 (/ a (- (sqrt (- (pow b_2 2) (* a c))) b_2))) |
| 62.0ms | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 54.0ms | (sqrt (- (pow b_2 2) (* a c))) |
| 20.0ms | (- (pow b_2 2) (* a c)) |
42 calls. Slowest were:
| 455.0ms | (sqrt (- (* (pow b_2 2) (pow b_2 2)) (* (* a c) (* a c)))) |
| 360.0ms | (sqrt (- (pow (pow b_2 2) 3) (pow (* a c) 3))) |
| 300.0ms | (+ (* (sqrt (- (pow b_2 2) (* a c))) (sqrt (- (pow b_2 2) (* a c)))) (+ (* b_2 b_2) (* (sqrt (- (pow b_2 2) (* a c))) b_2))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 6.4b
Found 4 expressions with local error:
| 23.2b | (sqrt (- (pow b_2 2) (* a c))) |
| 0.9b | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 0.4b | (- (pow b_2 2) (* a c)) |
| 0.2b | (* (/ 1 a) (- (sqrt (- (pow b_2 2) (* a c))) b_2)) |
4 calls. Slowest were:
| 55.0ms | (* (/ 1 a) (- (sqrt (- (pow b_2 2) (* a c))) b_2)) |
| 29.0ms | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 8.0ms | (- (pow b_2 2) (* a c)) |
4 calls. Slowest were:
| 85.0ms | (* (/ 1 a) (- (sqrt (- (pow b_2 2) (* a c))) b_2)) |
| 57.0ms | (sqrt (- (pow b_2 2) (* a c))) |
| 56.0ms | (- (sqrt (- (pow b_2 2) (* a c))) b_2) |
| 21.0ms | (- (pow b_2 2) (* a c)) |
53 calls. Slowest were:
| 656.0ms | (* (* (* (/ 1 a) (/ 1 a)) (/ 1 a)) (* (* (- (sqrt (- (pow b_2 2) (* a c))) b_2) (- (sqrt (- (pow b_2 2) (* a c))) b_2)) (- (sqrt (- (pow b_2 2) (* a c))) b_2))) |
| 482.0ms | (sqrt (- (* (pow b_2 2) (pow b_2 2)) (* (* a c) (* a c)))) |
| 396.0ms | (* 1 (- (pow (sqrt (- (pow b_2 2) (* a c))) 3) (pow b_2 3))) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 6.4b
82.7% (4.7b remaining)
Error of 10.7b against oracle of 6.0b and baseline of 33.1b