


Bits error versus x
Results
if x < -15562.517425007405 or 10884.524633064508 < x Initial program 59.2
rmApplied div-inv59.4
Taylor expanded around -inf 0.3
Simplified0.0
if -15562.517425007405 < x < 10884.524633064508Initial program 0.1
rmApplied add-log-exp0.1
Final simplification0.1
herbie shell --seed 2019016
(FPCore (x)
:name "Asymptote C"
(- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))
Time bar (total: 29.2s)Debug log
| 256× | (pre true 80) |
| 131× | (body real 80) |
| 56× | (body real 1280) |
| 39× | (body real 640) |
| 16× | (body real 320) |
| 14× | (body real 160) |
| 27.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 29.2b
Found 3 expressions with local error:
| 3.5b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 0.0b | (/ (+ x 1) (- x 1)) |
| 0.0b | (/ x (+ x 1)) |
| 17× | add-sqr-sqrt |
| 14× | *-un-lft-identity |
| 12× | add-cube-cbrt |
| 10× | times-frac |
| 6× | associate-/r* |
| 5× | add-log-exp |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 4× | associate-/r/ |
| 3× | associate-/l* |
| 3× | pow1 |
| 2× | associate-/l/ |
| 2× | difference-of-squares |
| 2× | flip-- |
| 2× | div-inv |
| 2× | flip-+ |
| 2× | flip3-- |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | distribute-lft-out-- |
| 1× | frac-sub |
| 1× | div-exp |
| 1× | diff-log |
| 1× | sub-neg |
| 1× | cbrt-undiv |
| 6.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 3.0ms | (/ (+ x 1) (- x 1)) |
| 0.0ms | (/ x (+ x 1)) |
| 34.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 12.0ms | (/ (+ x 1) (- x 1)) |
| 11.0ms | (/ x (+ x 1)) |
| 446.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 314.0ms | (/ (* (* (+ x 1) (+ x 1)) (+ x 1)) (* (* (- x 1) (- x 1)) (- x 1))) |
| 232.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 218.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 197.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 2)) 1))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 3.5b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 3.5b | (log (exp (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))) |
| 0.0b | (exp (- (/ x (+ x 1)) (/ (+ x 1) (- x 1)))) |
| 0.0b | (/ (+ x 1) (- x 1)) |
| 30× | add-sqr-sqrt |
| 21× | *-un-lft-identity |
| 15× | add-cube-cbrt |
| 12× | times-frac |
| 12× | exp-prod |
| 9× | add-log-exp |
| 7× | log-pow |
| 6× | difference-of-squares |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | log-prod |
| 5× | pow1 |
| 4× | exp-sum |
| 3× | distribute-lft-out-- |
| 3× | associate-/l* |
| 3× | sub-neg |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | rem-exp-log |
| 2× | flip-- |
| 2× | associate-/r/ |
| 2× | diff-log |
| 2× | exp-diff |
| 2× | flip3-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | frac-sub |
| 1× | rem-log-exp |
| 1× | div-exp |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | log-div |
| 1× | cbrt-undiv |
| 35.0ms | (log (exp (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))) |
| 30.0ms | (exp (- (/ x (+ x 1)) (/ (+ x 1) (- x 1)))) |
| 11.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 6.0ms | (/ (+ x 1) (- x 1)) |
| 47.0ms | (exp (- (/ x (+ x 1)) (/ (+ x 1) (- x 1)))) |
| 45.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 34.0ms | (log (exp (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))) |
| 11.0ms | (/ (+ x 1) (- x 1)) |
| 467.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 329.0ms | (/ (* (* (+ x 1) (+ x 1)) (+ x 1)) (* (* (- x 1) (- x 1)) (- x 1))) |
| 275.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 259.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 249.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 8.3b | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 0.1b | (* (+ x 1) (/ 1 (- x 1))) |
| 0.0b | (/ 1 (- x 1)) |
| 0.0b | (/ x (+ x 1)) |
| 9× | add-exp-log |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 7× | pow1 |
| 6× | add-log-exp |
| 6× | frac-sub |
| 6× | associate-/r/ |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | associate-/r* |
| 5× | flip-+ |
| 5× | flip3-+ |
| 4× | associate-*l/ |
| 4× | frac-times |
| 3× | flip-- |
| 3× | div-inv |
| 3× | associate-*l* |
| 3× | flip3-- |
| 2× | un-div-inv |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | sub-neg |
| 6.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 4.0ms | (* (+ x 1) (/ 1 (- x 1))) |
| 1.0ms | (/ 1 (- x 1)) |
| 0.0ms | (/ x (+ x 1)) |
| 50.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 17.0ms | (* (+ x 1) (/ 1 (- x 1))) |
| 9.0ms | (/ x (+ x 1)) |
| 6.0ms | (/ 1 (- x 1)) |
| 575.0ms | (* (- (* x x) (* 1 1)) (/ 1 (- x 1))) |
| 571.0ms | (- (* x (+ (* x x) (- (* 1 1) (* x 1)))) (* (+ x 1) (* (+ (pow x 3) (pow 1 3)) (/ 1 (- x 1))))) |
| 562.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 392.0ms | (* (+ x 1) (* (+ (* x x) (- (* 1 1) (* x 1))) (- x 1))) |
| 369.0ms | (* (+ x 1) (* (- x 1) (- x 1))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 8.3b | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 8.3b | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 8.3b | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 0.1b | (* (+ x 1) (/ 1 (- x 1))) |
| 18× | frac-sub |
| 10× | add-log-exp |
| 8× | flip-+ |
| 8× | add-exp-log |
| 8× | associate-*l/ |
| 8× | flip3-+ |
| 8× | frac-times |
| 6× | add-cube-cbrt |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | *-un-lft-identity |
| 6× | pow1 |
| 6× | add-sqr-sqrt |
| 4× | flip-- |
| 4× | un-div-inv |
| 4× | associate-*r/ |
| 4× | flip3-- |
| 3× | associate-*l* |
| 3× | diff-log |
| 3× | sub-neg |
| 2× | associate-/r/ |
| 2× | prod-exp |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | rec-exp |
| 15.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 12.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 12.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 7.0ms | (* (+ x 1) (/ 1 (- x 1))) |
| 47.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 44.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 36.0ms | (- (/ x (+ x 1)) (* (+ x 1) (/ 1 (- x 1)))) |
| 17.0ms | (* (+ x 1) (/ 1 (- x 1))) |
| 645.0ms | (* (- (* x x) (* 1 1)) (/ 1 (- x 1))) |
| 494.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 467.0ms | (* (+ x 1) (+ (* x x) (- (* 1 1) (* x 1)))) |
| 451.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
| 416.0ms | (- (* x (- x 1)) (* (+ x 1) (+ x 1))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
99.9% (0.0b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 29.4b
| 8000× | (pre true 80) |
| 4096× | (body real 80) |
| 1767× | (body real 1280) |
| 1213× | (body real 640) |
| 610× | (body real 320) |
| 314× | (body real 160) |