


Bits error versus x
Results
if x < -13507.472987014315 or 12154.943809828786 < x Initial program 29.3
Taylor expanded around inf 0.9
rmApplied pow-flip0.0
Simplified0.0
if -13507.472987014315 < x < 12154.943809828786Initial program 0.1
Final simplification0.1
herbie shell --seed 2019008
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 9.2s)Debug log
1 calls. Slowest were:
| 6.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 13.8b
Found 2 expressions with local error:
| 1.3b | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 0.0b | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 5.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 1.0ms | (/ 1 (+ x 1)) |
2 calls. Slowest were:
| 25.0ms | (/ 1 (+ x 1)) |
| 20.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
21 calls. Slowest were:
| 64.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 43.0ms | (- (+ (/ 1 (pow x 3)) (/ 1 x)) (/ 1 (pow x 2))) |
| 39.0ms | (- 1 (+ x (/ 1 x))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 12.0b | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 0.4b | (/ 1 (pow x 3)) |
| 0.2b | (/ 1 (pow x 2)) |
| 0.2b | (/ 1 (pow x 4)) |
4 calls. Slowest were:
| 24.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 1.0ms | (/ 1 (pow x 2)) |
| 1.0ms | (/ 1 (pow x 3)) |
4 calls. Slowest were:
| 22.0ms | (/ 1 (pow x 3)) |
| 21.0ms | (/ 1 (pow x 2)) |
| 20.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 20.0ms | (/ 1 (pow x 4)) |
46 calls. Slowest were:
| 564.0ms | (* (pow x 3) (- (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 431.0ms | (- (* 1 (- (/ 1 (pow x 4)) (/ 1 (pow x 2)))) (* (pow x 3) (- (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (* (/ 1 (pow x 2)) (/ 1 (pow x 2)))))) |
| 351.0ms | (* (pow x 3) (+ (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (- (* (/ 1 (pow x 2)) (/ 1 (pow x 2))) (* (/ 1 (pow x 4)) (/ 1 (pow x 2)))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 12.0b | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (pow x -2))) |
| 0.4b | (/ 1 (pow x 3)) |
| 0.2b | (/ 1 (pow x 4)) |
| 0.0b | (+ (/ 1 (pow x 4)) (pow x -2)) |
4 calls. Slowest were:
| 21.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (pow x -2))) |
| 4.0ms | (+ (/ 1 (pow x 4)) (pow x -2)) |
| 1.0ms | (/ 1 (pow x 3)) |
4 calls. Slowest were:
| 59.0ms | (+ (/ 1 (pow x 4)) (pow x -2)) |
| 20.0ms | (/ 1 (pow x 4)) |
| 18.0ms | (/ 1 (pow x 3)) |
| 14.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (pow x -2))) |
39 calls. Slowest were:
| 274.0ms | (- (* 1 (- (/ 1 (pow x 4)) (pow x -2))) (* (pow x 3) (- (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (* (pow x -2) (pow x -2))))) |
| 224.0ms | (* (pow x 3) (+ (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (- (* (pow x -2) (pow x -2)) (* (/ 1 (pow x 4)) (pow x -2))))) |
| 153.0ms | (* (pow x 3) (- (/ 1 (pow x 4)) (pow x -2))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.1b against oracle of 0.1b and baseline of 14.6b