


Bits error versus x



Bits error versus y
Results
if x < -0.007686048224427534 or 0.0023370395689180524 < x Initial program 0.0
Initial simplification0.0
rmApplied flip--0.0
if -0.007686048224427534 < x < 0.0023370395689180524Initial program 59.1
Initial simplification59.1
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2018362 +o rules:numerics
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 13.0s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.0b
Found 2 expressions with local error:
| 3.6b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
2 calls. Slowest were:
| 12.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
2 calls. Slowest were:
| 52.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 16.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
17 calls. Slowest were:
| 149.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 137.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 44.0ms | (- (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 19.0b | (- (+ 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)) |
3 calls. Slowest were:
| 5.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)) |
3 calls. Slowest were:
| 40.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 29.0ms | (* 2/15 (pow x 5)) |
| 15.0ms | (* 1/3 (pow x 3)) |
25 calls. Slowest were:
| 181.0ms | (fma 1 (+ x (* 2/15 (pow x 5))) (- (* (pow x 3) 1/3))) |
| 143.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 143.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 3.5b | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 0.0b | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 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)))) |
4 calls. Slowest were:
| 28.0ms | (/ (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) (+ (/ 2 (+ 1 (exp (* -2 x)))) 1)) |
| 11.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 7.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
4 calls. Slowest were:
| 118.0ms | (/ (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) (+ (/ 2 (+ 1 (exp (* -2 x)))) 1)) |
| 36.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 35.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 15.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
80 calls. Slowest were:
| 1.1s | (* (* (* (/ 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)))))) |
| 802.0ms | (/ (* (* (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1))) (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1))) (* (* (+ (/ 2 (+ 1 (exp (* -2 x)))) 1) (+ (/ 2 (+ 1 (exp (* -2 x)))) 1)) (+ (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 475.0ms | (/ (- (* 4 (/ 1 (pow (+ (exp (* -2 x)) 1) 2))) 1) (+ (* 2 (/ 1 (+ (exp (* -2 x)) 1))) 1)) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.6b