


Bits error versus x
if x < -8.80985298240059e+48 or 126507.6676441063 < x Initial program 59.8
rmApplied frac-sub61.7
Taylor expanded around inf 0.3
Simplified0.0
if -8.80985298240059e+48 < x < 126507.6676441063Initial program 3.3
rmApplied frac-sub3.3
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2018362 +o rules:numerics
(FPCore (x)
:name "Asymptote C"
(- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))
Time bar (total: 2.0m)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 23.8b
Found 3 expressions with local error:
| 1.6b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 0.0b | (/ (+ x 1) (- x 1)) |
| 0.0b | (/ x (+ x 1)) |
3 calls. Slowest were:
| 15.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 6.0ms | (/ (+ x 1) (- x 1)) |
| 1.0ms | (/ x (+ x 1)) |
3 calls. Slowest were:
| 51.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 11.0ms | (/ x (+ x 1)) |
| 10.0ms | (/ (+ x 1) (- x 1)) |
235 calls. Slowest were:
| 943.0ms | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 (- x 1)) (+ x 1)))) |
| 866.0ms | (fma 1 (/ x (+ x 1)) (- (* (+ x 1) (/ (+ x 1) (- (* x x) (* 1 1)))))) |
| 860.0ms | (fma (sqrt (/ x (+ x 1))) (sqrt (/ x (+ x 1))) (- (* (+ x 1) (/ (+ x 1) (- (* x x) (* 1 1)))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.4b | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 0.0b | (* (+ x 1) (+ x 1)) |
| 0.0b | (/ (- (* x (- x 1)) (* (+ x 1) (+ x 1))) (* (+ x 1) (- x 1))) |
| 0.0b | (* x (- x 1)) |
4 calls. Slowest were:
| 21.0ms | (/ (- (* x (- x 1)) (* (+ x 1) (+ x 1))) (* (+ x 1) (- x 1))) |
| 10.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 7.0ms | (* (+ x 1) (+ x 1)) |
4 calls. Slowest were:
| 32.0ms | (/ (- (* x (- x 1)) (* (+ x 1) (+ x 1))) (* (+ x 1) (- x 1))) |
| 28.0ms | (* x (- x 1)) |
| 17.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 10.0ms | (* (+ x 1) (+ x 1)) |
127 calls. Slowest were:
| 1.2s | (* (+ (* x x) (- (* 1 1) (* x 1))) (- x 1)) |
| 1.1s | (* (+ (* x x) (+ (* 1 1) (* x 1))) (+ (* x x) (- (* 1 1) (* x 1)))) |
| 881.0ms | (- (pow (* x (- x 1)) 3) (pow (* (+ x 1) (+ x 1)) 3)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 13.1b | (/ (fma -3 x -1) (* (+ x 1) (- x 1))) |
| 0.1b | (fma -3 x -1) |
| 0.0b | (* (+ x 1) (- x 1)) |
3 calls. Slowest were:
| 11.0ms | (/ (fma -3 x -1) (* (+ x 1) (- x 1))) |
| 8.0ms | (* (+ x 1) (- x 1)) |
| 0.0ms | (fma -3 x -1) |
3 calls. Slowest were:
| 37.0ms | (* (+ x 1) (- x 1)) |
| 30.0ms | (/ (fma -3 x -1) (* (+ x 1) (- x 1))) |
| 21.0ms | (fma -3 x -1) |
54 calls. Slowest were:
| 1.4s | (* (* (* (+ x 1) (+ x 1)) (+ x 1)) (* (* (- x 1) (- x 1)) (- x 1))) |
| 620.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 619.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 18.6b | (* (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) (* (- x 1) (+ x 1))) |
| 2.3b | (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) |
| 0.1b | (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1))) |
| 0.1b | (fma -3 x -1) |
4 calls. Slowest were:
| 35.0ms | (* (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) (* (- x 1) (+ x 1))) |
| 18.0ms | (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1))) |
| 16.0ms | (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) |
4 calls. Slowest were:
| 49.0ms | (* (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) (* (- x 1) (+ x 1))) |
| 23.0ms | (fma -3 x -1) |
| 21.0ms | (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) |
| 14.0ms | (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1))) |
122 calls. Slowest were:
| 1.2s | (* (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) (* (- x 1) (+ x 1))) |
| 1.1s | (* (/ (fma -3 x -1) (* (- (* x x) (* 1 1)) (- (* x x) (* 1 1)))) (* (- x 1) (+ x 1))) |
| 737.0ms | (/ (fma -3 x -1) (* (- (pow (* x x) 3) (pow (* 1 1) 3)) (- (pow (* x x) 3) (pow (* 1 1) 3)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
99.9% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 15.3b