


Bits error versus a



Bits error versus b



Bits error versus c
if b < 7.4121645311061e+111Initial program 14.4
Initial simplification14.4
rmApplied add-cube-cbrt14.6
Applied sqrt-prod14.6
Simplified14.6
if 7.4121645311061e+111 < b Initial program 46.5
Initial simplification46.5
Taylor expanded around 0 3.0
Final simplification13.0
herbie shell --seed 2018360 +o rules:numerics
(FPCore (a b c)
:name "jeff quadratic root 1"
(if (>= b 0) (/ (- (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)) (/ (* 2 c) (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))))))
Time bar (total: 19.0s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 17.8b
Found 4 expressions with local error:
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
| 0.9b | (- (sqrt (fma c (* a -4) (* b b))) b) |
| 0.8b | (- (- b) (sqrt (fma c (* a -4) (* b b)))) |
4 calls. Slowest were:
| 10.0ms | (- (- b) (sqrt (fma c (* a -4) (* b b)))) |
| 5.0ms | (- (sqrt (fma c (* a -4) (* b b))) b) |
| 1.0ms | (sqrt (fma c (* a -4) (* b b))) |
4 calls. Slowest were:
| 77.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 67.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 64.0ms | (- (sqrt (fma c (* a -4) (* b b))) b) |
| 52.0ms | (- (- b) (sqrt (fma c (* a -4) (* b b)))) |
81 calls. Slowest were:
| 90.0ms | (- (* 2 (/ (* a c) b)) (* 2 b)) |
| 58.0ms | (fma 1 (- b) (- (* (sqrt (fma c (* a -4) (* b b))) 1))) |
| 56.0ms | (fma 1 (- b) (- (* (cbrt (sqrt (fma c (* a -4) (* b b)))) (* (cbrt (sqrt (fma c (* a -4) (* b b)))) (cbrt (sqrt (fma c (* a -4) (* b b)))))))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 11.9b
Found 4 expressions with local error:
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
| 0.9b | (- (sqrt (fma c (* a -4) (* b b))) b) |
4 calls. Slowest were:
| 5.0ms | (- (sqrt (fma c (* a -4) (* b b))) b) |
| 1.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 1.0ms | (sqrt (fma c (* a -4) (* b b))) |
4 calls. Slowest were:
| 61.0ms | (- (sqrt (fma c (* a -4) (* b b))) b) |
| 60.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 55.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 41.0ms | (sqrt (fma c (* a -4) (* b b))) |
29 calls. Slowest were:
| 19.0ms | (sqrt (sqrt (fma c (* a -4) (* b b)))) |
| 19.0ms | (sqrt (sqrt (fma c (* a -4) (* b b)))) |
| 18.0ms | (sqrt (fma c (* a -4) (* b b))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 11.9b
Found 4 expressions with local error:
| 23.4b | (cbrt (fma c (* a -4) (* b b))) |
| 23.4b | (cbrt (fma (* c -4) a (* b b))) |
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
| 7.0b | (- (* (fabs (cbrt (fma (* c -4) a (* b b)))) (sqrt (cbrt (fma c (* a -4) (* b b))))) b) |
4 calls. Slowest were:
| 12.0ms | (- (* (fabs (cbrt (fma (* c -4) a (* b b)))) (sqrt (cbrt (fma c (* a -4) (* b b))))) b) |
| 1.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 1.0ms | (cbrt (fma c (* a -4) (* b b))) |
4 calls. Slowest were:
| 249.0ms | (- (* (fabs (cbrt (fma (* c -4) a (* b b)))) (sqrt (cbrt (fma c (* a -4) (* b b))))) b) |
| 193.0ms | (cbrt (fma c (* a -4) (* b b))) |
| 186.0ms | (cbrt (fma (* c -4) a (* b b))) |
| 65.0ms | (sqrt (fma c (* a -4) (* b b))) |
23 calls. Slowest were:
| 421.0ms | (- (* (exp (* 1/6 (- (log -4) (+ (log (/ 1 a)) (log (/ 1 c)))))) (fabs (pow (fma (* -4 c) a (pow b 2)) 1/3))) b) |
| 358.0ms | (exp (* 1/3 (- (log -4) (+ (log (/ -1 c)) (log (/ -1 a)))))) |
| 344.0ms | (exp (* 1/3 (- (log -4) (+ (log (/ -1 c)) (log (/ -1 a)))))) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 11.9b
Found 4 expressions with local error:
| 23.4b | (cbrt (fma (* a -4) c (* b b))) |
| 23.4b | (cbrt (fma (* a -4) c (* b b))) |
| 23.3b | (fma (fabs (cbrt (fma (* a -4) c (* b b)))) (sqrt (cbrt (fma (* a -4) c (* b b)))) b) |
| 22.7b | (sqrt (fma c (* a -4) (* b b))) |
4 calls. Slowest were:
| 1.0ms | (sqrt (fma c (* a -4) (* b b))) |
| 1.0ms | (cbrt (fma (* a -4) c (* b b))) |
| 1.0ms | (cbrt (fma (* a -4) c (* b b))) |
4 calls. Slowest were:
| 338.0ms | (fma (fabs (cbrt (fma (* a -4) c (* b b)))) (sqrt (cbrt (fma (* a -4) c (* b b)))) b) |
| 235.0ms | (cbrt (fma (* a -4) c (* b b))) |
| 207.0ms | (cbrt (fma (* a -4) c (* b b))) |
| 67.0ms | (sqrt (fma c (* a -4) (* b b))) |
22 calls. Slowest were:
| 379.0ms | (+ (* (exp (* 1/6 (- (log -4) (+ (log (/ 1 a)) (log (/ 1 c)))))) (fabs (pow (fma (* -4 a) c (pow b 2)) 1/3))) b) |
| 358.0ms | (+ (* (fabs (pow (fma (* -4 a) c (pow b 2)) 1/3)) (exp (* 1/6 (- (log -4) (+ (log (/ -1 c)) (log (/ -1 a))))))) b) |
| 350.0ms | (exp (* 1/3 (- (log -4) (+ (log (/ -1 c)) (log (/ -1 a)))))) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 11.9b
91% (0.6b remaining)
Error of 13.0b against oracle of 12.4b and baseline of 19.1b