


Bits error versus x



Bits error versus y
Results
if x < -0.007185451780055169Initial program 0.0
Taylor expanded around inf 0.0
Simplified0.0
if -0.007185451780055169 < x < 0.007491583784597752Initial program 59.0
Taylor expanded around inf 59.0
Simplified59.0
Taylor expanded around 0 0.0
if 0.007491583784597752 < x Initial program 0.0
rmApplied flip3--0.0
Final simplification0.0
herbie shell --seed 2019022
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 16.9s)Debug log
| 32.0ms | 60× | body | 1280 | valid |
| 28.0ms | 37× | body | 640 | valid |
| 11.0ms | 137× | body | 80 | valid |
| 4.0ms | 16× | body | 320 | valid |
| 1.0ms | 6× | body | 160 | valid |
| 14.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 28.1b
Found 1 expressions with local error:
| 1.9b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | difference-of-sqr-1 |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | sub-neg |
| 1× | pow1 |
| 7.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 55.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 90.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 21.0ms | (- (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1) |
| 20.0ms | (- (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1) |
| 9.0ms | (+ (sqrt (/ 2 (+ 1 (exp (* -2 x))))) 1) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.9b | (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)) |
| 0.0b | (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) |
| 0.0b | (+ (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (+ (* 1 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 0.0b | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 14× | add-sqr-sqrt |
| 11× | add-log-exp |
| 11× | *-un-lft-identity |
| 10× | pow1 |
| 8× | flip-+ |
| 8× | add-cube-cbrt |
| 8× | associate-/r/ |
| 8× | flip3-+ |
| 7× | add-exp-log |
| 7× | cube-prod |
| 7× | add-cbrt-cube |
| 7× | unpow-prod-down |
| 6× | frac-add |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | div-inv |
| 3× | difference-of-squares |
| 3× | associate-*r/ |
| 3× | associate-*l/ |
| 3× | sum-log |
| 3× | frac-times |
| 2× | distribute-lft-out-- |
| 2× | cube-mult |
| 1× | rem-cube-cbrt |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-exp |
| 1× | pow-prod-down |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | pow-plus |
| 1× | pow-pow |
| 1× | sub-neg |
| 1× | associate-+r+ |
| 1× | +-commutative |
| 1× | difference-cubes |
| 1× | pow-to-exp |
| 1× | pow2 |
| 1× | cube-div |
| 20.0ms | (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)) |
| 16.0ms | (+ (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (+ (* 1 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 7.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 3.0ms | (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) |
| 76.0ms | (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)) |
| 72.0ms | (+ (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (+ (* 1 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 38.0ms | (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) |
| 20.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 956.0ms | (* (* (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (/ 2 (+ 1 (exp (* -2 x))))) (* (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (/ 2 (+ 1 (exp (* -2 x)))))) |
| 629.0ms | (+ (* (* 2 (/ 2 (+ 1 (exp (* -2 x))))) (- (* 1 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))) (* (+ 1 (exp (* -2 x))) (- (* (* 1 1) (* 1 1)) (* (* (/ 2 (+ 1 (exp (* -2 x)))) 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))))) |
| 524.0ms | (pow (/ 2 (- (* 1 1) (* (exp (* -2 x)) (exp (* -2 x))))) 3) |
| 518.0ms | (pow (/ 2 (- (* 1 1) (* (exp (* -2 x)) (exp (* -2 x))))) 3) |
| 513.0ms | (+ (* (* (/ 2 (+ 1 (exp (* -2 x)))) 2) (- (* 1 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))) (* (+ 1 (exp (* -2 x))) (- (* (* 1 1) (* 1 1)) (* (* (/ 2 (+ 1 (exp (* -2 x)))) 1) (* (/ 2 (+ 1 (exp (* -2 x)))) 1))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 1 expressions with local error:
| 1.9b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | difference-of-sqr-1 |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | sub-neg |
| 1× | pow1 |
| 4.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 35.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 64.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 40.0ms | (- (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1) |
| 30.0ms | (- (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1) |
| 9.0ms | (+ (sqrt (/ 2 (+ 1 (exp (* -2 x))))) 1) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 19.1b | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 0.2b | (* 2/15 (pow x 5)) |
| 0.1b | (* 1/3 (pow x 3)) |
| 0.0b | (+ x (* 2/15 (pow x 5))) |
| 8× | associate-*r* |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 2× | *-commutative |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | associate--l+ |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | +-commutative |
| 1× | cube-mult |
| 8.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 2.0ms | (* 1/3 (pow x 3)) |
| 2.0ms | (* 2/15 (pow x 5)) |
| 2.0ms | (+ x (* 2/15 (pow x 5))) |
| 69.0ms | (+ x (* 2/15 (pow x 5))) |
| 36.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 33.0ms | (* 2/15 (pow x 5)) |
| 26.0ms | (* 1/3 (pow x 3)) |
| 144.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 75.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 73.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 68.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 10.0ms | (* 1/3 (pow x 3)) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 29.5b
| 953.0ms | 1714× | body | 1280 | valid |
| 822.0ms | 1261× | body | 640 | valid |
| 448.0ms | 4078× | body | 80 | valid |
| 154.0ms | 639× | body | 320 | valid |
| 51.0ms | 308× | body | 160 | valid |