


Bits error versus x



Bits error versus y
Results
if x < -0.007330709220870434 or 0.006326539173242781 < x Initial program 0.0
rmApplied add-sqr-sqrt0.0
Applied associate-/r*0.0
rmApplied add-cube-cbrt0.0
if -0.007330709220870434 < x < 0.006326539173242781Initial program 59.2
Taylor expanded around 0 0.0
rmApplied associate--l+0.0
Final simplification0.0
herbie shell --seed 2019010
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 10.3s)Debug log
| 15.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.0b
Found 3 expressions with local error:
| 2.9b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
| 0.0b | (+ 1 (exp (* -2 x))) |
| 5× | add-sqr-sqrt |
| 4× | add-cube-cbrt |
| 4× | *-un-lft-identity |
| 3× | add-log-exp |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | associate-/r* |
| 3× | pow1 |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | flip3-+ |
| 1× | flip-- |
| 1× | div-inv |
| 1× | difference-of-sqr-1 |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | +-commutative |
| 8.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 2.0ms | (+ 1 (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 76.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 28.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 8.0ms | (+ 1 (exp (* -2 x))) |
| 187.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 91.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 76.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 53.0ms | (- (+ x 1) (* 1/3 (pow x 3))) |
| 30.0ms | (- (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 20.3b | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 0.1b | (* 1/3 (pow x 3)) |
| 0.1b | (* 2/15 (pow x 5)) |
| 8× | associate-*r* |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | *-commutative |
| 1× | flip-- |
| 1× | associate--l+ |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | cube-mult |
| 5.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 1.0ms | (* 1/3 (pow x 3)) |
| 1.0ms | (* 2/15 (pow x 5)) |
| 35.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 33.0ms | (* 1/3 (pow x 3)) |
| 23.0ms | (* 2/15 (pow x 5)) |
| 138.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 70.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 63.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 52.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 7.0ms | (* 1/3 (pow x 3)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 20.3b | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 0.1b | (* 1/3 (pow x 3)) |
| 0.1b | (* 2/15 (pow x 5)) |
| 8× | associate-*r* |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | *-commutative |
| 1× | flip-- |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | cube-mult |
| 3.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 1.0ms | (* 1/3 (pow x 3)) |
| 1.0ms | (* 2/15 (pow x 5)) |
| 84.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 33.0ms | (* 2/15 (pow x 5)) |
| 27.0ms | (* 1/3 (pow x 3)) |
| 72.0ms | (/ (exp (* 2/15 (pow x 5))) (exp (* 1/3 (pow x 3)))) |
| 50.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 48.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 26.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 10.0ms | (* 1/3 (pow x 3)) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 2.9b | (- (/ (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x))))) 1) |
| 0.5b | (/ 2 (sqrt (+ 1 (exp (* -2 x))))) |
| 0.0b | (/ (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x))))) |
| 0.0b | (+ 1 (exp (* -2 x))) |
| 38× | times-frac |
| 32× | add-sqr-sqrt |
| 27× | add-cube-cbrt |
| 27× | *-un-lft-identity |
| 25× | sqrt-prod |
| 18× | associate-/r/ |
| 18× | sqrt-div |
| 12× | associate-/r* |
| 10× | flip-+ |
| 10× | flip3-+ |
| 9× | div-inv |
| 6× | associate-/l* |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | pow1 |
| 3× | difference-of-sqr-1 |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | associate-/l/ |
| 1× | flip-- |
| 1× | div-exp |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 25.0ms | (- (/ (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x))))) 1) |
| 5.0ms | (/ (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x))))) |
| 2.0ms | (/ 2 (sqrt (+ 1 (exp (* -2 x))))) |
| 1.0ms | (+ 1 (exp (* -2 x))) |
| 52.0ms | (/ 2 (sqrt (+ 1 (exp (* -2 x))))) |
| 50.0ms | (- (/ (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x))))) 1) |
| 26.0ms | (/ (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x))))) |
| 12.0ms | (+ 1 (exp (* -2 x))) |
| 314.0ms | (- (+ (* 1/2 (/ x (sqrt 1/2))) (* 2 (sqrt 1/2))) (* 1/16 (/ (pow x 2) (pow (sqrt 1/2) 3)))) |
| 219.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 215.0ms | (/ (* (* (/ 2 (sqrt (+ 1 (exp (* -2 x))))) (/ 2 (sqrt (+ 1 (exp (* -2 x)))))) (/ 2 (sqrt (+ 1 (exp (* -2 x)))))) (* (* (sqrt (+ 1 (exp (* -2 x)))) (sqrt (+ 1 (exp (* -2 x))))) (sqrt (+ 1 (exp (* -2 x)))))) |
| 118.0ms | (sqrt (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) |
| 97.0ms | (/ (sqrt (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) (sqrt (sqrt (+ 1 (exp (* -2 x)))))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.1b