


Bits error versus x



Bits error versus y
if x < -0.008862770794215684Initial program 0.0
Taylor expanded around inf 0.0
rmApplied add-cube-cbrt0.0
Applied fma-neg0.0
if -0.008862770794215684 < x < 0.006326539173242781Initial program 59.1
Taylor expanded around inf 59.1
Taylor expanded around 0 0.0
rmApplied associate--l+0.0
if 0.006326539173242781 < x Initial program 0.0
Taylor expanded around inf 0.0
Final simplification0.0
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 8.4s)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))) |
| 6× | fma-neg |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 4× | associate-/r/ |
| 4× | add-exp-log |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | flip-+ |
| 3× | add-cbrt-cube |
| 3× | flip3-+ |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 1× | flip-- |
| 1× | difference-of-sqr-1 |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | expm1-def |
| 1× | +-commutative |
| 9.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 2.0ms | (+ 1 (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 49.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 28.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 8.0ms | (+ 1 (exp (* -2 x))) |
| 181.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 132.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 93.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 45.0ms | (- (+ x 1) (* 1/3 (pow x 3))) |
| 38.0ms | (/ 2 (+ (pow 1 3) (pow (exp (* -2 x)) 3))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 2.9b | (- (/ 2 (+ (exp (* -2 x)) 1)) 1) |
| 0.0b | (/ 2 (+ (exp (* -2 x)) 1)) |
| 0.0b | (+ (exp (* -2 x)) 1) |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | fma-neg |
| 6× | *-un-lft-identity |
| 4× | associate-/r/ |
| 4× | add-exp-log |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | flip-+ |
| 3× | add-cbrt-cube |
| 3× | flip3-+ |
| 3× | fma-def |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 1× | flip-- |
| 1× | difference-of-sqr-1 |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | expm1-def |
| 1× | +-commutative |
| 20.0ms | (- (/ 2 (+ (exp (* -2 x)) 1)) 1) |
| 8.0ms | (+ (exp (* -2 x)) 1) |
| 5.0ms | (/ 2 (+ (exp (* -2 x)) 1)) |
| 56.0ms | (- (/ 2 (+ (exp (* -2 x)) 1)) 1) |
| 16.0ms | (/ 2 (+ (exp (* -2 x)) 1)) |
| 8.0ms | (+ (exp (* -2 x)) 1) |
| 187.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 73.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 68.0ms | (- (+ x 1) (* 1/3 (pow x 3))) |
| 65.0ms | (+ (* (exp (* -2 x)) (exp (* -2 x))) (- (* 1 1) (* (exp (* -2 x)) 1))) |
| 44.0ms | (/ 2 (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 1))) |
3 alts after pruning (2 fresh and 1 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* |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 5× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | prod-diff |
| 3× | fma-neg |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | *-commutative |
| 1× | flip-- |
| 1× | associate--l+ |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | cube-mult |
| 11.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 3.0ms | (* 2/15 (pow x 5)) |
| 2.0ms | (* 1/3 (pow x 3)) |
| 37.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 32.0ms | (* 2/15 (pow x 5)) |
| 26.0ms | (* 1/3 (pow x 3)) |
| 149.0ms | (fma 1 (+ x (* 2/15 (pow x 5))) (- (* (pow x 3) 1/3))) |
| 136.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 130.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 110.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 101.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
3 alts after pruning (2 fresh and 1 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× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | *-commutative |
| 1× | flip-- |
| 1× | prod-diff |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | cube-mult |
| 7.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 4.0ms | (* 2/15 (pow x 5)) |
| 2.0ms | (* 1/3 (pow x 3)) |
| 94.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 28.0ms | (* 2/15 (pow x 5)) |
| 27.0ms | (* 1/3 (pow x 3)) |
| 115.0ms | (/ (exp (* 2/15 (pow x 5))) (exp (* 1/3 (pow x 3)))) |
| 54.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
| 47.0ms | (fma (- (pow x 3)) 1/3 (* (pow x 3) 1/3)) |
| 35.0ms | (fma 2/15 (pow x 5) (- (* (pow x 3) 1/3))) |
| 32.0ms | (- (* 2/15 (pow x 5)) (* 1/3 (pow x 3))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 29.5b