


Bits error versus x
Initial program 13.9
Initial simplification13.9
rmApplied frac-sub13.3
Simplified0.3
Simplified0.3
rmApplied *-un-lft-identity0.3
Applied associate-/r*0.3
Final simplification0.3
herbie shell --seed 2018360 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 15.2s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 12.5b
Found 2 expressions with local error:
| 1.8b | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 0.0b | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 12.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)) |
73 calls. Slowest were:
| 984.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
| 964.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 x) 1))) |
| 964.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 x) 1))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.3b
Found 1 expressions with local error:
| 0.3b | (/ -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:
| 67.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 54.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 26.0ms | (- 1 (+ x (/ 1 x))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.3b | (/ (/ -1 1) (fma x x x)) |
1 calls. Slowest were:
| 9.0ms | (/ (/ -1 1) (fma x x x)) |
1 calls. Slowest were:
| 18.0ms | (/ (/ -1 1) (fma x x x)) |
34 calls. Slowest were:
| 1.1s | (/ (* (* (/ -1 1) (/ -1 1)) (/ -1 1)) (* (* (fma x x x) (fma x x x)) (fma x x x))) |
| 49.0ms | (- (log (/ -1 1)) (log (fma x x x))) |
| 45.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 14.8b | (cbrt (/ -1 (fma x x x))) |
| 14.8b | (cbrt (/ -1 (fma x x x))) |
| 14.8b | (cbrt (/ -1 (fma x x x))) |
| 0.5b | (* (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:
| 103.0ms | (* (cbrt (/ -1 (fma x x x))) (cbrt (/ -1 (fma x x x)))) |
| 82.0ms | (cbrt (/ -1 (fma x x x))) |
| 78.0ms | (cbrt (/ -1 (fma x x x))) |
| 74.0ms | (cbrt (/ -1 (fma x x x))) |
53 calls. Slowest were:
| 375.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)))) |
| 353.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)))) |
| 307.0ms | (- (+ (* 2/9 (* (pow (pow x 5) 1/3) (cbrt -1))) (* (pow (/ 1 x) 1/3) (cbrt -1))) (* 1/3 (* (pow (pow x 2) 1/3) (cbrt -1)))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.2b
0% (0.1b remaining)
Error of 0.3b against oracle of 0.3b and baseline of 0.3b