


Bits error versus x
if x < -15536.005790753223 or 9720.782418787607 < x Initial program 59.1
rmApplied add-log-exp59.1
Taylor expanded around -inf 0.3
Simplified0.0
if -15536.005790753223 < x < 9720.782418787607Initial program 0.1
rmApplied add-log-exp0.1
rmApplied flip3-+0.1
Applied associate-/r/0.1
Applied fma-neg0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "Asymptote C"
(- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))
Time bar (total: 1.8m)Debug log
| 15.0ms | 51× | body | 1280 | valid |
| 9.0ms | 134× | body | 80 | valid |
| 7.0ms | 31× | body | 640 | valid |
| 5.0ms | 26× | body | 320 | valid |
| 2.0ms | 14× | body | 160 | valid |
| 28.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 28.8b
Found 3 expressions with local error:
| 4.1b | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 0.0b | (/ (+ x 1) (- x 1)) |
| 0.0b | (/ x (+ x 1)) |
| 90× | prod-diff |
| 75× | add-sqr-sqrt |
| 72× | *-un-lft-identity |
| 70× | add-cube-cbrt |
| 64× | times-frac |
| 48× | associate-/r/ |
| 24× | div-inv |
| 18× | flip-+ |
| 18× | flip3-+ |
| 8× | flip-- |
| 8× | flip3-- |
| 6× | fma-neg |
| 6× | associate-/r* |
| 5× | add-log-exp |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 3× | associate-/l* |
| 3× | log1p-expm1-u |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | difference-of-squares |
| 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 |
| 21.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 5.0ms | (/ (+ x 1) (- x 1)) |
| 1.0ms | (/ x (+ x 1)) |
| 44.0ms | (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))) |
| 10.0ms | (/ (+ x 1) (- x 1)) |
| 10.0ms | (/ x (+ x 1)) |
| 885.0ms | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 (- x 1)) (+ x 1)))) |
| 734.0ms | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (sqrt (/ (+ x 1) (- x 1))) (sqrt (/ (+ x 1) (- x 1)))))) |
| 734.0ms | (fma x (/ 1 (+ x 1)) (- (* (+ x 1) (/ (+ x 1) (- (* x x) (* 1 1)))))) |
| 734.0ms | (fma (/ x (- (* x x) (* 1 1))) (- x 1) (- (* (cbrt (/ (+ x 1) (- x 1))) (* (cbrt (/ (+ x 1) (- x 1))) (cbrt (/ (+ x 1) (- x 1))))))) |
| 710.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:
| 4.1b | (- (/ x (+ x 1)) (log (exp (/ (+ x 1) (- x 1))))) |
| 0.0b | (log (exp (/ (+ x 1) (- x 1)))) |
| 0.0b | (/ (+ x 1) (- x 1)) |
| 0.0b | (exp (/ (+ x 1) (- x 1))) |
| 120× | exp-prod |
| 114× | prod-diff |
| 113× | log-pow |
| 99× | *-un-lft-identity |
| 98× | add-sqr-sqrt |
| 96× | add-cube-cbrt |
| 81× | times-frac |
| 58× | associate-/r/ |
| 29× | div-inv |
| 21× | flip-+ |
| 21× | flip3-+ |
| 12× | pow1 |
| 10× | flip-- |
| 10× | flip3-- |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | fma-neg |
| 6× | add-cbrt-cube |
| 6× | log-prod |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | associate--r+ |
| 3× | associate-/l* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | distribute-lft-out-- |
| 1× | rem-exp-log |
| 1× | difference-of-squares |
| 1× | rem-log-exp |
| 1× | div-exp |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 28.0ms | (- (/ x (+ x 1)) (log (exp (/ (+ x 1) (- x 1))))) |
| 8.0ms | (log (exp (/ (+ x 1) (- x 1)))) |
| 6.0ms | (exp (/ (+ x 1) (- x 1))) |
| 6.0ms | (/ (+ x 1) (- x 1)) |
| 55.0ms | (- (/ x (+ x 1)) (log (exp (/ (+ x 1) (- x 1))))) |
| 33.0ms | (exp (/ (+ x 1) (- x 1))) |
| 16.0ms | (log (exp (/ (+ x 1) (- x 1)))) |
| 15.0ms | (/ (+ x 1) (- x 1)) |
| 1.0s | (fma (- (log (exp (+ x 1)))) (/ 1 (- x 1)) (* (log (exp (+ x 1))) (/ 1 (- x 1)))) |
| 983.0ms | (fma (- (log (exp (+ x 1)))) (/ 1 (- x 1)) (* (log (exp (+ x 1))) (/ 1 (- x 1)))) |
| 952.0ms | (fma (- (log (exp (+ x 1)))) (/ 1 (- x 1)) (* (log (exp (+ x 1))) (/ 1 (- x 1)))) |
| 919.0ms | (fma (- (log (exp (+ x 1)))) (/ 1 (- x 1)) (* (log (exp (+ x 1))) (/ 1 (- x 1)))) |
| 909.0ms | (fma (- (log (exp (+ x 1)))) (/ 1 (- x 1)) (* (log (exp (+ x 1))) (/ 1 (- x 1)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 29.1b | (fma (/ -1 (+ -1 x)) (+ 1 x) (/ x (+ 1 x))) |
| 0.0b | (/ -1 (+ -1 x)) |
| 0.0b | (/ x (+ 1 x)) |
| 6× | associate-/r* |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | associate-/r/ |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | fma-udef |
| 1.0ms | (/ -1 (+ -1 x)) |
| 1.0ms | (/ x (+ 1 x)) |
| 0.0ms | (fma (/ -1 (+ -1 x)) (+ 1 x) (/ x (+ 1 x))) |
| 41.0ms | (fma (/ -1 (+ -1 x)) (+ 1 x) (/ x (+ 1 x))) |
| 17.0ms | (/ x (+ 1 x)) |
| 11.0ms | (/ -1 (+ -1 x)) |
| 533.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 489.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 75.0ms | (- (+ x (pow x 3)) (pow x 2)) |
| 60.0ms | (- (+ (/ 1 (pow x 3)) (+ (/ 1 (pow x 2)) (/ 1 x)))) |
| 46.0ms | (+ (* -1 -1) (- (* x x) (* -1 x))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 29.5b | (fma (/ x (fma x (* x x) 1)) (+ (* x x) (- (* 1 1) (* x 1))) (- (log (exp (/ (+ x 1) (- x 1)))))) |
| 3.6b | (/ x (fma x (* x x) 1)) |
| 0.1b | (fma x (* x x) 1) |
| 0.0b | (log (exp (/ (+ x 1) (- x 1)))) |
| 16× | log-pow |
| 15× | exp-prod |
| 13× | add-cube-cbrt |
| 13× | *-un-lft-identity |
| 13× | add-sqr-sqrt |
| 9× | times-frac |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 3× | associate-/r* |
| 3× | log-prod |
| 2× | div-inv |
| 2× | fma-udef |
| 2× | associate-/r/ |
| 1× | flip-- |
| 1× | rem-log-exp |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 8.0ms | (log (exp (/ (+ x 1) (- x 1)))) |
| 1.0ms | (/ x (fma x (* x x) 1)) |
| 0.0ms | (fma (/ x (fma x (* x x) 1)) (+ (* x x) (- (* 1 1) (* x 1))) (- (log (exp (/ (+ x 1) (- x 1)))))) |
| 0.0ms | (fma x (* x x) 1) |
| 370.0ms | (log (exp (/ (+ x 1) (- x 1)))) |
| 70.0ms | (fma (/ x (fma x (* x x) 1)) (+ (* x x) (- (* 1 1) (* x 1))) (- (log (exp (/ (+ x 1) (- x 1)))))) |
| 39.0ms | (fma x (* x x) 1) |
| 34.0ms | (/ x (fma x (* x x) 1)) |
| 577.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 549.0ms | (- (+ (* 3 (/ 1 (pow x 3))) (+ (/ 1 (pow x 2)) (* 3 (/ 1 x))))) |
| 518.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 2)) 1))) |
| 98.0ms | (+ (* 2 (/ 1 (pow x 2))) (+ (* 2 (/ 1 x)) 1)) |
| 73.0ms | (+ (* 2 (/ 1 (pow x 2))) (+ (* 2 (/ 1 x)) 1)) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.1b against oracle of 0.1b and baseline of 29.5b
| 786.0ms | 1718× | body | 1280 | valid |
| 444.0ms | 4131× | body | 80 | valid |
| 441.0ms | 1151× | body | 640 | valid |
| 151.0ms | 658× | body | 320 | valid |
| 54.0ms | 342× | body | 160 | valid |