


Bits error versus x
Initial program 14.8
rmApplied frac-sub14.2
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019005 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 12.4s)Debug log
1 calls. Slowest were:
| 5.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.7b
Found 2 expressions with local error:
| 2.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:
| 551.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
| 503.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 432.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.2b | (/ -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:
| 72.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 50.0ms | (- 1 (+ x (/ 1 x))) |
| 44.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 14.7b | (cbrt (/ -1 (fma x x x))) |
| 14.7b | (cbrt (/ -1 (fma x x x))) |
| 14.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:
| 9.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:
| 82.0ms | (cbrt (/ -1 (fma x x x))) |
| 76.0ms | (* (cbrt (/ -1 (fma x x x))) (cbrt (/ -1 (fma x x x)))) |
| 70.0ms | (cbrt (/ -1 (fma x x x))) |
| 61.0ms | (cbrt (/ -1 (fma x x x))) |
53 calls. Slowest were:
| 392.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)))) |
| 296.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)))) |
| 292.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)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 2.6b | (+ (/ 1 (+ x 1)) (- (/ 1 x))) |
| 0.0b | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 10.0ms | (+ (/ 1 (+ x 1)) (- (/ 1 x))) |
| 2.0ms | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 18.0ms | (+ (/ 1 (+ x 1)) (- (/ 1 x))) |
| 10.0ms | (/ 1 (+ x 1)) |
29 calls. Slowest were:
| 73.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 56.0ms | (* (exp (/ 1 (+ x 1))) (exp (- (/ 1 x)))) |
| 51.0ms | (/ 1 (- (* x x) (* 1 1))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0.1b
0% (0.1b remaining)
Error of 0.4b against oracle of 0.3b and baseline of 0.4b