


Bits error versus x



Bits error versus y
Results
if x < -0.007531935859306163 or 0.006834872945865455 < x Initial program 0.0
rmApplied flip--0.0
if -0.007531935859306163 < x < 0.006834872945865455Initial program 58.9
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2019007
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 15.0s)Debug log
1 calls. Slowest were:
| 8.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 28.8b
Found 3 expressions with local error:
| 3.8b | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 0.0b | (+ 1 (exp (* -2 x))) |
| 0.0b | (/ 2 (+ 1 (exp (* -2 x)))) |
3 calls. Slowest were:
| 4.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 1.0ms | (+ 1 (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
3 calls. Slowest were:
| 36.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 15.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 7.0ms | (+ 1 (exp (* -2 x))) |
15 calls. Slowest were:
| 166.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 71.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 68.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 3.8b | (- (* (/ 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 | (+ 1 (exp (* -2 x))) |
| 0.0b | (+ 1 (exp (* -2 x))) |
4 calls. Slowest were:
| 7.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 4.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 1.0ms | (+ 1 (exp (* -2 x))) |
4 calls. Slowest were:
| 31.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 18.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 7.0ms | (+ 1 (exp (* -2 x))) |
| 7.0ms | (+ 1 (exp (* -2 x))) |
35 calls. Slowest were:
| 720.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)))))) |
| 160.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 146.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 19.1b | (- (+ 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:
| 4.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:
| 25.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 20.0ms | (* 2/15 (pow x 5)) |
| 15.0ms | (* 1/3 (pow x 3)) |
17 calls. Slowest were:
| 93.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 52.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))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 4.0b | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 3.8b | (- (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))))) 1) |
| 0.2b | (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) |
| 0.0b | (pow (exp (* -2 x)) 3) |
4 calls. Slowest were:
| 28.0ms | (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) |
| 7.0ms | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 4.0ms | (pow (exp (* -2 x)) 3) |
4 calls. Slowest were:
| 178.0ms | (- (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))))) 1) |
| 64.0ms | (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) |
| 23.0ms | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 23.0ms | (pow (exp (* -2 x)) 3) |
87 calls. Slowest were:
| 280.0ms | (/ (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) (* (cbrt (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) (cbrt (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))))) |
| 235.0ms | (+ (sqrt (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))))) 1) |
| 203.0ms | (- (* (pow 1 3) (pow 1 3)) (* (pow (exp (* -2 x)) 3) (pow (exp (* -2 x)) 3))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 29.1b