


Bits error versus x



Bits error versus y
Results
if x < -0.00825580838562665Initial program 0.0
Initial simplification0.0
rmApplied add-cube-cbrt0.0
rmApplied flip--0.0
if -0.00825580838562665 < x < 0.006166302486698174Initial program 58.9
Initial simplification58.9
Taylor expanded around 0 0.0
if 0.006166302486698174 < x Initial program 0.0
Initial simplification0.0
rmApplied add-cbrt-cube0.0
Final simplification0.0
herbie shell --seed 2018360
(FPCore (x y)
:name "Logistic function from Lakshay Garg"
(- (/ 2 (+ 1 (exp (* -2 x)))) 1))
Time bar (total: 13.8s)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:
| 8.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 2.0ms | (+ 1 (exp (* -2 x))) |
| 1.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
3 calls. Slowest were:
| 51.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 16.0ms | (/ 2 (+ 1 (exp (* -2 x)))) |
| 8.0ms | (+ 1 (exp (* -2 x))) |
15 calls. Slowest were:
| 94.0ms | (- (+ (* 2 (pow x 2)) 2) (* 2 x)) |
| 65.0ms | (+ (* 1 1) (- (* (exp (* -2 x)) (exp (* -2 x))) (* 1 (exp (* -2 x))))) |
| 52.0ms | (- (+ x 1) (* 1/3 (pow x 3))) |
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:
| 6.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:
| 24.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 20.0ms | (* 2/15 (pow x 5)) |
| 19.0ms | (* 1/3 (pow x 3)) |
17 calls. Slowest were:
| 96.0ms | (/ (exp (+ x (* 2/15 (pow x 5)))) (exp (* 1/3 (pow x 3)))) |
| 64.0ms | (- (+ x (* 2/15 (pow x 5))) (* 1/3 (pow x 3))) |
| 55.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:
| 53.0ms | (cbrt (* (* (- (/ 2 (+ 1 (exp (* -2 x)))) 1) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 8.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 8.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
4 calls. Slowest were:
| 65.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 59.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
| 51.0ms | (cbrt (* (* (- (/ 2 (+ 1 (exp (* -2 x)))) 1) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1))) |
| 46.0ms | (- (/ 2 (+ 1 (exp (* -2 x)))) 1) |
43 calls. Slowest were:
| 554.0ms | (cbrt (* (* (- (/ 2 (+ 1 (exp (* -2 x)))) 1) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)))) |
| 431.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)))) 1))) |
| 374.0ms | (cbrt (* (* (- (* (/ 2 (+ 1 (exp (* -2 x)))) (/ 2 (+ 1 (exp (* -2 x))))) (* 1 1)) (- (/ 2 (+ 1 (exp (* -2 x)))) 1)) (- (pow (/ 2 (+ 1 (exp (* -2 x)))) 3) (pow 1 3)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 3.8b | (- (* (* (cbrt (/ 2 (+ 1 (exp (* -2 x))))) (cbrt (/ 2 (+ 1 (exp (* -2 x)))))) (cbrt (/ 2 (+ 1 (exp (* -2 x)))))) 1) |
| 0.2b | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
| 0.2b | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
| 0.2b | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
4 calls. Slowest were:
| 23.0ms | (- (* (* (cbrt (/ 2 (+ 1 (exp (* -2 x))))) (cbrt (/ 2 (+ 1 (exp (* -2 x)))))) (cbrt (/ 2 (+ 1 (exp (* -2 x)))))) 1) |
| 1.0ms | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
| 1.0ms | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
4 calls. Slowest were:
| 178.0ms | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
| 177.0ms | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
| 173.0ms | (cbrt (/ 2 (+ 1 (exp (* -2 x))))) |
| 163.0ms | (- (* (* (cbrt (/ 2 (+ 1 (exp (* -2 x))))) (cbrt (/ 2 (+ 1 (exp (* -2 x)))))) (cbrt (/ 2 (+ 1 (exp (* -2 x)))))) 1) |
33 calls. Slowest were:
| 145.0ms | (- (+ (* (pow 1/2 1/3) (cbrt 2)) (* 1/3 (* (* x (cbrt 2)) (pow 1/2 1/3)))) (* 1/9 (* (* (pow x 2) (cbrt 2)) (pow 1/2 1/3)))) |
| 129.0ms | (- (+ (* (pow 1/2 1/3) (cbrt 2)) (* 1/3 (* (* x (cbrt 2)) (pow 1/2 1/3)))) (* 1/9 (* (* (pow x 2) (cbrt 2)) (pow 1/2 1/3)))) |
| 128.0ms | (- (+ (* (pow 1/2 1/3) (cbrt 2)) (* 1/3 (* (* x (cbrt 2)) (pow 1/2 1/3)))) (* 1/9 (* (* (pow x 2) (cbrt 2)) (pow 1/2 1/3)))) |
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