


Bits error versus x
if x < -11997.32666981334 or 11909.34130082208 < x Initial program 59.2
Taylor expanded around inf 0.3
Simplified0.0
if -11997.32666981334 < x < 11909.34130082208Initial program 0.1
rmApplied frac-sub0.1
rmApplied distribute-rgt-in0.1
Applied associate--r+0.1
Simplified0.1
rmApplied flip3-+0.1
Applied associate-*l/0.1
Applied associate-/r/0.1
Simplified0.1
Final simplification0.0
herbie shell --seed 2019002 +o rules:numerics
(FPCore (x)
:name "Asymptote C"
(- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))
Time bar (total: 4.6m)Debug log
1 calls. Slowest were:
| 28.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 26.6b
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:
| 8.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 3.0ms | (/ (+ x 1) (- x 1)) |
| 0.0ms | (/ x (+ x 1)) |
3 calls. Slowest were:
| 48.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 10.0ms | (/ (+ x 1) (- x 1)) |
| 10.0ms | (/ x (+ x 1)) |
235 calls. Slowest were:
| 1.1s | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 (- x 1)) (+ x 1)))) |
| 949.0ms | (fma 1 (/ x (+ x 1)) (- (* (+ x 1) (/ (+ x 1) (- (* x x) (* 1 1)))))) |
| 918.0ms | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (cbrt (/ (+ x 1) (- x 1))) (* (cbrt (/ (+ x 1) (- x 1))) (cbrt (/ (+ x 1) (- x 1))))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.6b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 1.6b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 1.6b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 0.0b | (cbrt (- (/ x (+ x 1)) (/ (+ x 1) (- x 1)))) |
4 calls. Slowest were:
| 15.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 14.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 11.0ms | (cbrt (- (/ x (+ x 1)) (/ (+ x 1) (- x 1)))) |
4 calls. Slowest were:
| 97.0ms | (cbrt (- (/ x (+ x 1)) (/ (+ x 1) (- x 1)))) |
| 48.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 33.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 31.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
597 calls. Slowest were:
| 1.3s | (fma 1 (/ x (+ x 1)) (- (* (+ x 1) (/ (+ x 1) (- (* x x) (* 1 1)))))) |
| 1.2s | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 (- x 1)) (+ x 1)))) |
| 1.1s | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 (- x 1)) (+ x 1)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.8b | (- (* 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:
| 25.0ms | (/ (- (* x (- x 1)) (* (+ x 1) (+ x 1))) (* (+ x 1) (- x 1))) |
| 11.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 8.0ms | (* (+ x 1) (+ x 1)) |
4 calls. Slowest were:
| 33.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 28.0ms | (* x (- x 1)) |
| 28.0ms | (/ (- (* x (- x 1)) (* (+ x 1) (+ x 1))) (* (+ x 1) (- x 1))) |
| 10.0ms | (* (+ x 1) (+ x 1)) |
127 calls. Slowest were:
| 1.1s | (* (+ (* x x) (- (* 1 1) (* x 1))) (- x 1)) |
| 852.0ms | (- (pow (* x (- x 1)) 3) (pow (* (+ x 1) (+ x 1)) 3)) |
| 800.0ms | (* (+ x 1) (* (+ (* x x) (- (* 1 1) (* x 1))) (+ (* x x) (- (* 1 1) (* x 1))))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 15.8b | (- (* x (- x 1)) (* x (+ x 1))) |
| 13.5b | (/ (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) (* (+ x 1) (- x 1))) |
| 0.0b | (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) |
| 0.0b | (* x (+ x 1)) |
4 calls. Slowest were:
| 39.0ms | (/ (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) (* (+ x 1) (- x 1))) |
| 30.0ms | (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) |
| 7.0ms | (- (* x (- x 1)) (* x (+ x 1))) |
4 calls. Slowest were:
| 31.0ms | (/ (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) (* (+ x 1) (- x 1))) |
| 25.0ms | (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) |
| 19.0ms | (- (* x (- x 1)) (* x (+ x 1))) |
| 18.0ms | (* x (+ x 1)) |
141 calls. Slowest were:
| 3.8s | (- (* (- (* x (- x 1)) (* x (+ x 1))) (- (* x (- x 1)) (* x (+ x 1)))) (* (+ x 1) (+ x 1))) |
| 1.6s | (/ (- (- (* x (- x 1)) (* x (+ x 1))) (+ x 1)) (- x 1)) |
| 1.6s | (fma (* (cbrt (- (* x (- x 1)) (* x (+ x 1)))) (cbrt (- (* x (- x 1)) (* x (+ x 1))))) (cbrt (- (* x (- x 1)) (* x (+ x 1)))) (- (* (+ x 1) 1))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 29.1b