


Bits error versus x



Bits error versus y
Results
if x < -0.007287118496474421 or 0.004923808475551174 < x Initial program 0.0
Taylor expanded around -inf 0.0
Simplified0.0
rmApplied flip--0.0
if -0.007287118496474421 < x < 0.004923808475551174Initial program 59.1
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2019002 +o rules:numerics
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 11.5s)Debug log
1 calls. Slowest were:
| 7.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.9b
Found 2 expressions with local error:
| 2.0b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
2 calls. Slowest were:
| 10.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
2 calls. Slowest were:
| 61.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 28.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
17 calls. Slowest were:
| 122.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 110.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 67.0ms | (- (+ x 1) (* 1/3 (pow x 3))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 19.2b | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 0.1b | (* 1/3 (pow x 3)) |
| 0.0b | (* 2/15 (pow x 5)) |
| 0.0b | (+ x (* 2/15 (pow x 5))) |
4 calls. Slowest were:
| 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)) |
4 calls. Slowest were:
| 84.0ms | (+ x (* 2/15 (pow x 5))) |
| 35.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 21.0ms | (* 2/15 (pow x 5)) |
| 15.0ms | (* 1/3 (pow x 3)) |
28 calls. Slowest were:
| 179.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 161.0ms | (fma (sqrt (+ x (* 2/15 (pow x 5)))) (sqrt (+ x (* 2/15 (pow x 5)))) (- (* (pow x 3) 1/3))) |
| 148.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 2.0b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
2 calls. Slowest were:
| 10.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
2 calls. Slowest were:
| 60.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 18.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
17 calls. Slowest were:
| 121.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 107.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 75.0ms | (- (+ x 1) (* 1/3 (pow x 3))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.9b | (- (* (/ 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)))) 1) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
4 calls. Slowest were:
| 5.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 4.0ms | (+ (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 4.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
4 calls. Slowest were:
| 49.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 34.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 32.0ms | (+ (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 17.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
47 calls. Slowest were:
| 943.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)))))) |
| 283.0ms | (- (+ (* 2 x) (pow x 2)) (* 2/3 (pow x 3))) |
| 184.0ms | (* (+ 1 (exp (* -2 x))) (+ 1 (exp (* -2 x)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 30.8b