


Bits error versus x
Initial program 14.7
rmApplied frac-sub14.0
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019002 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 16.1s)Debug log
1 calls. Slowest were:
| 5.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 13.2b
Found 2 expressions with local error:
| 1.6b | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 0.0b | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 6.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 1.0ms | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 11.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 6.0ms | (/ 1 (+ x 1)) |
73 calls. Slowest were:
| 532.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
| 481.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 420.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.4b
Found 1 expressions with local error:
| 0.4b | (/ -1 (fma x x x)) |
1 calls. Slowest were:
| 1.0ms | (/ -1 (fma x x x)) |
1 calls. Slowest were:
| 19.0ms | (/ -1 (fma x x x)) |
6 calls. Slowest were:
| 46.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 45.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 45.0ms | (- 1 (+ x (/ 1 x))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 13.7b | (cbrt (/ -1 (fma x x x))) |
| 13.7b | (cbrt (/ -1 (fma x x x))) |
| 13.7b | (cbrt (/ -1 (fma x x x))) |
| 0.4b | (* (cbrt (/ -1 (fma x x x))) (cbrt (/ -1 (fma x x x)))) |
4 calls. Slowest were:
| 5.0ms | (* (cbrt (/ -1 (fma x x x))) (cbrt (/ -1 (fma x x x)))) |
| 1.0ms | (cbrt (/ -1 (fma x x x))) |
| 1.0ms | (cbrt (/ -1 (fma x x x))) |
4 calls. Slowest were:
| 96.0ms | (* (cbrt (/ -1 (fma x x x))) (cbrt (/ -1 (fma x x x)))) |
| 66.0ms | (cbrt (/ -1 (fma x x x))) |
| 61.0ms | (cbrt (/ -1 (fma x x x))) |
| 59.0ms | (cbrt (/ -1 (fma x x x))) |
53 calls. Slowest were:
| 337.0ms | (- (+ (* 5/9 (* (pow (/ 1 (pow x 10)) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 4)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow (/ 1 (pow x 7)) 1/3) (pow (cbrt -1) 2)))) |
| 300.0ms | (- (+ (* 5/9 (* (pow (pow x 4) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 2)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow x 1/3) (pow (cbrt -1) 2)))) |
| 290.0ms | (- (+ (* 2/9 (* (pow (/ 1 (pow x 8)) 1/3) (cbrt -1))) (* (pow (/ 1 (pow x 2)) 1/3) (cbrt -1))) (* 1/3 (* (pow (/ 1 (pow x 5)) 1/3) (cbrt -1)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 14.3b | (cbrt (fma x x x)) |
| 14.3b | (cbrt (fma x x x)) |
| 13.7b | (cbrt (/ -1 (fma x x x))) |
| 0.8b | (/ (* (cbrt -1) (cbrt -1)) (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
4 calls. Slowest were:
| 9.0ms | (/ (* (cbrt -1) (cbrt -1)) (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (cbrt (fma x x x)) |
4 calls. Slowest were:
| 115.0ms | (/ (* (cbrt -1) (cbrt -1)) (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
| 88.0ms | (cbrt (/ -1 (fma x x x))) |
| 58.0ms | (cbrt (fma x x x)) |
| 34.0ms | (cbrt (fma x x x)) |
35 calls. Slowest were:
| 347.0ms | (- (+ (* 5/9 (* (pow (/ 1 (pow x 10)) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 4)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow (/ 1 (pow x 7)) 1/3) (pow (cbrt -1) 2)))) |
| 335.0ms | (- (+ (* 5/9 (* (pow (pow x 4) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 2)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow x 1/3) (pow (cbrt -1) 2)))) |
| 316.0ms | (- (+ (* 5/9 (* (pow (/ 1 (pow x 10)) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 4)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow (/ 1 (pow x 7)) 1/3) (pow (cbrt -1) 2)))) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0.3b
0% (0.1b remaining)
Error of 0.4b against oracle of 0.3b and baseline of 0.4b