


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 +o rules:numerics
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 25.0s)Debug log
1 calls. Slowest were:
| 30.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:
| 5.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 1.0ms | (+ 1 (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
3 calls. Slowest were:
| 47.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 30.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 12.0ms | (+ 1 (exp (* -2 x))) |
20 calls. Slowest were:
| 192.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 140.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 131.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:
| 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))))) |
| 2.0ms | (+ 1 (exp (* -2 x))) |
4 calls. Slowest were:
| 46.0ms | (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) |
| 19.0ms | (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) |
| 8.0ms | (+ 1 (exp (* -2 x))) |
| 8.0ms | (+ 1 (exp (* -2 x))) |
38 calls. Slowest were:
| 984.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)))))) |
| 241.0ms | (- (+ (* 2 x) (pow x 2)) (* 2/3 (pow x 3))) |
| 210.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:
| 10.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:
| 34.0ms | (* 2/15 (pow x 5)) |
| 26.0ms | (* 1/3 (pow x 3)) |
| 24.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
25 calls. Slowest were:
| 168.0ms | (fma 1 (+ x (* 2/15 (pow x 5))) (- (* (pow x 3) 1/3))) |
| 157.0ms | (fma (sqrt (+ x (* 2/15 (pow x 5)))) (sqrt (+ 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)))) |
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:
| 62.0ms | (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) |
| 22.0ms | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 6.0ms | (- (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))))) 1) |
4 calls. Slowest were:
| 311.0ms | (- (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))))) 1) |
| 85.0ms | (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))) |
| 39.0ms | (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))) |
| 24.0ms | (pow (exp (* -2 x)) 3) |
94 calls. Slowest were:
| 528.0ms | (- (+ (* 2 (/ (pow (exp (* -2 x)) 2) (+ (pow (exp (* -2 x)) 3) 1))) (* 2 (/ 1 (+ (pow (exp (* -2 x)) 3) 1)))) (+ (* 2 (/ (exp (* -2 x)) (+ (pow (exp (* -2 x)) 3) 1))) 1)) |
| 520.0ms | (- (+ (* 2 (/ (pow (exp (* -2 x)) 2) (+ (pow (exp (* -2 x)) 3) 1))) (* 2 (/ 1 (+ (pow (exp (* -2 x)) 3) 1)))) (+ (* 2 (/ (exp (* -2 x)) (+ (pow (exp (* -2 x)) 3) 1))) 1)) |
| 490.0ms | (* (cbrt (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x)))))))) (cbrt (/ 2 (/ (+ (pow 1 3) (pow (exp (* -2 x)) 3)) (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))))))) |
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.1b