


Bits error versus x



Bits error versus y
Results
if x < -0.007795368062903516 or 0.006166302486698174 < x Initial program 0.0
Initial simplification0.0
rmApplied add-cbrt-cube0.0
if -0.007795368062903516 < x < 0.006166302486698174Initial program 58.9
Initial simplification58.9
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2018360 +o rules:numerics
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 20.0s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.1b
Found 3 expressions with local error:
| 4.1b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
| 0.0b | (+ 1 (exp (* -2 x))) |
3 calls. Slowest were:
| 9.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 2.0ms | (+ 1 (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
3 calls. Slowest were:
| 63.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 26.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 12.0ms | (+ 1 (exp (* -2 x))) |
20 calls. Slowest were:
| 158.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 134.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 132.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 14.5b | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 0.2b | (* 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))) |
| 1.0ms | (* 1/3 (pow x 3)) |
| 1.0ms | (* 2/15 (pow x 5)) |
3 calls. Slowest were:
| 33.0ms | (* 2/15 (pow x 5)) |
| 31.0ms | (* 1/3 (pow x 3)) |
| 31.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
25 calls. Slowest were:
| 198.0ms | (fma 1 (+ x (* 2/15 (pow x 5))) (- (* (pow x 3) 1/3))) |
| 159.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))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 4.1b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 4.1b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 4.1b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.1b | (cbrt (* (* (- (/ 2 (+ 1 (exp (* -2 x)))) 1) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
4 calls. Slowest were:
| 20.0ms | (cbrt (* (* (- (/ 2 (+ 1 (exp (* -2 x)))) 1) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 7.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 7.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
4 calls. Slowest were:
| 58.0ms | (cbrt (* (* (- (/ 2 (+ 1 (exp (* -2 x)))) 1) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 39.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 37.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 36.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
58 calls. Slowest were:
| 957.0ms | (cbrt (* (* (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)) (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1))) (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)))) |
| 946.0ms | (cbrt (* (* (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)))) |
| 943.0ms | (cbrt (* (* (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)) (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1))) (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 4.3b | (fma (/ 2 (+ 1 (exp (* x -6)))) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) (- 1)) |
| 4.2b | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 0.0b | (* (exp (* -2 x)) (exp (* -2 x))) |
| 0.0b | (/ 2 (+ 1 (exp (* x -6)))) |
4 calls. Slowest were:
| 16.0ms | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 12.0ms | (* (exp (* -2 x)) (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* x -6)))) |
4 calls. Slowest were:
| 143.0ms | (fma (/ 2 (+ 1 (exp (* x -6)))) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) (- 1)) |
| 26.0ms | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 17.0ms | (/ 2 (+ 1 (exp (* x -6)))) |
| 10.0ms | (* (exp (* -2 x)) (exp (* -2 x))) |
37 calls. Slowest were:
| 343.0ms | (- (+ (* 2 (/ (pow (exp (* -2 x)) 2) (+ (exp (* -6 x)) 1))) (* 2 (/ 1 (+ (exp (* -6 x)) 1)))) (+ (* 2 (/ (exp (* -2 x)) (+ (exp (* -6 x)) 1))) 1)) |
| 319.0ms | (- (* 6 (pow x 2)) (+ (* 2 x) (* 28/3 (pow x 3)))) |
| 290.0ms | (- (+ (* 2 (/ (pow (exp (* -2 x)) 2) (+ (exp (* -6 x)) 1))) (* 2 (/ 1 (+ (exp (* -6 x)) 1)))) (+ (* 2 (/ (exp (* -2 x)) (+ (exp (* -6 x)) 1))) 1)) |
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 31.3b