


Bits error versus a



Bits error versus b



Bits error versus c



Bits error versus d
Results
if b < -4.118754782773214e+154Initial program 61.0
rmApplied associate-/r*61.0
Taylor expanded around -inf 9.1
if -4.118754782773214e+154 < b < 2.210478198490344e-28Initial program 14.2
Taylor expanded around inf 14.3
rmApplied *-un-lft-identity14.3
Applied *-un-lft-identity14.3
Applied distribute-lft-out14.3
Simplified14.2
if 2.210478198490344e-28 < b Initial program 54.4
Taylor expanded around inf 7.2
Final simplification11.2
herbie shell --seed 2019016
(FPCore (a b c d)
:name "Cubic critical"
(/ (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) (* 3 a)))
Time bar (total: 17.1s)Debug log
| 393× | (pre true 80) |
| 190× | (body real 80) |
| 113× | (body nan 80) |
| 37× | (body real 2560) |
| 26× | (body real 1280) |
| 14× | (body real 640) |
| 6× | (body real 160) |
| 4× | (body real 320) |
| 3× | (body real 5120) |
| 67.0ms | (/ (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) (* 3 a)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 33.4b
Found 4 expressions with local error:
| 24.1b | (sqrt (- (* b b) (* (* 3 a) c))) |
| 1.3b | (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) |
| 0.6b | (- (* b b) (* (* 3 a) c)) |
| 0.2b | (/ (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) (* 3 a)) |
| 13× | *-un-lft-identity |
| 8× | add-log-exp |
| 8× | add-sqr-sqrt |
| 7× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | associate-/l* |
| 4× | times-frac |
| 4× | pow1 |
| 3× | distribute-lft-out |
| 3× | sqrt-prod |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-+l- |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 2× | neg-sub0 |
| 1× | div-inv |
| 1× | div-exp |
| 1× | div-sub |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 24.0ms | (/ (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) (* 3 a)) |
| 5.0ms | (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) |
| 2.0ms | (- (* b b) (* (* 3 a) c)) |
| 2.0ms | (sqrt (- (* b b) (* (* 3 a) c))) |
| 72.0ms | (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) |
| 72.0ms | (/ (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) (* 3 a)) |
| 51.0ms | (sqrt (- (* b b) (* (* 3 a) c))) |
| 44.0ms | (- (* b b) (* (* 3 a) c)) |
| 403.0ms | (sqrt (- (pow (* b b) 3) (pow (* (* 3 a) c) 3))) |
| 316.0ms | (- (* (- b) (- b)) (* (sqrt (- (* b b) (* (* 3 a) c))) (sqrt (- (* b b) (* (* 3 a) c))))) |
| 303.0ms | (+ (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 3 a) c))) 3)) |
| 126.0ms | (sqrt (- (* (* b b) (* b b)) (* (* (* 3 a) c) (* (* 3 a) c)))) |
| 107.0ms | (/ (* (* (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) (+ (- b) (sqrt (- (* b b) (* (* 3 a) c))))) (+ (- b) (sqrt (- (* b b) (* (* 3 a) c))))) (* (* (* 3 a) (* 3 a)) (* 3 a))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 5.1b
Found 4 expressions with local error:
| 24.1b | (sqrt (- (pow b 2) (* 3 (* a c)))) |
| 1.3b | (+ (- b) (sqrt (- (pow b 2) (* 3 (* a c))))) |
| 0.6b | (- (pow b 2) (* 3 (* a c))) |
| 0.2b | (* 3 (* a c)) |
| 8× | add-log-exp |
| 7× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | sqrt-prod |
| 2× | flip-- |
| 2× | sqrt-div |
| 2× | flip3-- |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | associate-+l- |
| 1× | *-commutative |
| 1× | associate-*r* |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | neg-sub0 |
| 11.0ms | (+ (- b) (sqrt (- (pow b 2) (* 3 (* a c))))) |
| 5.0ms | (sqrt (- (pow b 2) (* 3 (* a c)))) |
| 3.0ms | (- (pow b 2) (* 3 (* a c))) |
| 1.0ms | (* 3 (* a c)) |
| 73.0ms | (+ (- b) (sqrt (- (pow b 2) (* 3 (* a c))))) |
| 53.0ms | (sqrt (- (pow b 2) (* 3 (* a c)))) |
| 37.0ms | (- (pow b 2) (* 3 (* a c))) |
| 11.0ms | (* 3 (* a c)) |
| 331.0ms | (sqrt (- (pow (pow b 2) 3) (pow (* 3 (* a c)) 3))) |
| 134.0ms | (- b (* 3/2 (/ (* a c) b))) |
| 129.0ms | (sqrt (- (* (pow b 2) (pow b 2)) (* (* 3 (* a c)) (* 3 (* a c))))) |
| 95.0ms | (/ (exp (pow b 2)) (exp (* 3 (* a c)))) |
| 83.0ms | (- (* 3/2 (/ (* a c) b)) (* 2 b)) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 5.1b
Found 4 expressions with local error:
| 24.1b | (sqrt (+ (* c (* a -3)) (* b b))) |
| 1.3b | (- (sqrt (+ (* c (* a -3)) (* b b))) b) |
| 0.6b | (+ (* c (* a -3)) (* b b)) |
| 0.2b | (/ (* 1 (- (sqrt (+ (* c (* a -3)) (* b b))) b)) (* 3 a)) |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 4× | pow1 |
| 3× | sqrt-prod |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-*r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | div-exp |
| 1× | pow1/2 |
| 1× | times-frac |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 13.0ms | (/ (* 1 (- (sqrt (+ (* c (* a -3)) (* b b))) b)) (* 3 a)) |
| 11.0ms | (- (sqrt (+ (* c (* a -3)) (* b b))) b) |
| 4.0ms | (sqrt (+ (* c (* a -3)) (* b b))) |
| 3.0ms | (+ (* c (* a -3)) (* b b)) |
| 83.0ms | (/ (* 1 (- (sqrt (+ (* c (* a -3)) (* b b))) b)) (* 3 a)) |
| 74.0ms | (- (sqrt (+ (* c (* a -3)) (* b b))) b) |
| 62.0ms | (sqrt (+ (* c (* a -3)) (* b b))) |
| 51.0ms | (+ (* c (* a -3)) (* b b)) |
| 805.0ms | (* 1 (- (* (sqrt (+ (* c (* a -3)) (* b b))) (sqrt (+ (* c (* a -3)) (* b b)))) (* b b))) |
| 329.0ms | (* 1 (- (pow (sqrt (+ (* c (* a -3)) (* b b))) 3) (pow b 3))) |
| 274.0ms | (sqrt (- (* (* c (* a -3)) (* c (* a -3))) (* (* b b) (* b b)))) |
| 157.0ms | (sqrt (+ (pow (* c (* a -3)) 3) (pow (* b b) 3))) |
| 141.0ms | (/ (* (* (* 1 (- (sqrt (+ (* c (* a -3)) (* b b))) b)) (* 1 (- (sqrt (+ (* c (* a -3)) (* b b))) b))) (* 1 (- (sqrt (+ (* c (* a -3)) (* b b))) b))) (* (* (* 3 a) (* 3 a)) (* 3 a))) |
12 alts after pruning (10 fresh and 2 done)
Merged error: 5.1b
Found 4 expressions with local error:
| 24.1b | (sqrt (- (* b b) (* (* 3 a) c))) |
| 1.3b | (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) |
| 0.6b | (- (* b b) (* (* 3 a) c)) |
| 0.2b | (* (* 3 a) c) |
| 8× | add-log-exp |
| 7× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | sqrt-prod |
| 2× | flip-- |
| 2× | sqrt-div |
| 2× | flip3-- |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | associate-+l- |
| 1× | *-commutative |
| 1× | associate-*l* |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | neg-sub0 |
| 11.0ms | (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) |
| 4.0ms | (- (* b b) (* (* 3 a) c)) |
| 4.0ms | (* (* 3 a) c) |
| 4.0ms | (sqrt (- (* b b) (* (* 3 a) c))) |
| 53.0ms | (sqrt (- (* b b) (* (* 3 a) c))) |
| 47.0ms | (+ (- b) (sqrt (- (* b b) (* (* 3 a) c)))) |
| 36.0ms | (- (* b b) (* (* 3 a) c)) |
| 18.0ms | (* (* 3 a) c) |
| 388.0ms | (sqrt (- (pow (* b b) 3) (pow (* (* 3 a) c) 3))) |
| 143.0ms | (sqrt (- (* (* b b) (* b b)) (* (* (* 3 a) c) (* (* 3 a) c)))) |
| 121.0ms | (- b (* 3/2 (/ (* a c) b))) |
| 84.0ms | (- (* 3/2 (/ (* a c) b)) (* 2 b)) |
| 83.0ms | (/ (exp (* b b)) (exp (* (* 3 a) c))) |
13 alts after pruning (10 fresh and 3 done)
Merged error: 5.1b
80.8% (5.4b remaining)
Error of 11.2b against oracle of 5.7b and baseline of 33.9b
| 11582× | (pre true 80) |
| 5896× | (body real 80) |
| 2852× | (body nan 80) |
| 1063× | (body real 2560) |
| 886× | (body real 1280) |
| 431× | (body real 640) |
| 237× | (body real 320) |
| 109× | (body real 160) |
| 108× | (body real 5120) |