


Bits error versus x
Initial program 14.2
rmApplied flip--29.1
Applied associate-/r/29.2
Applied flip-+14.3
Applied associate-/r/14.2
Applied distribute-lft-out--13.6
Simplified13.6
Simplified0.3
Final simplification0.3
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x)
:name "Asymptote A"
(- (/ 1 (+ x 1)) (/ 1 (- x 1))))
Time bar (total: 34.0s)Debug log
| 256× | (pre true 80) |
| 132× | (body real 80) |
| 58× | (body real 640) |
| 34× | (body real 160) |
| 32× | (body real 320) |
| 11.0ms | (- (/ 1 (+ x 1)) (/ 1 (- x 1))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.5b
Found 3 expressions with local error:
| 3.5b | (- (/ 1 (+ x 1)) (/ 1 (- x 1))) |
| 0.0b | (/ 1 (- x 1)) |
| 0.0b | (/ 1 (+ x 1)) |
| 36× | prod-diff |
| 32× | associate-/r/ |
| 22× | *-un-lft-identity |
| 20× | add-sqr-sqrt |
| 19× | div-inv |
| 18× | add-cube-cbrt |
| 9× | flip-- |
| 9× | flip-+ |
| 8× | flip3-- |
| 8× | flip3-+ |
| 6× | fma-neg |
| 6× | associate-/r* |
| 5× | add-log-exp |
| 5× | distribute-lft-out-- |
| 5× | add-exp-log |
| 5× | pow1 |
| 3× | log1p-expm1-u |
| 3× | add-cbrt-cube |
| 3× | expm1-log1p-u |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | difference-of-squares |
| 1× | frac-sub |
| 1× | diff-log |
| 1× | sub-neg |
| 12.0ms | (- (/ 1 (+ x 1)) (/ 1 (- x 1))) |
| 2.0ms | (/ 1 (- x 1)) |
| 2.0ms | (/ 1 (+ x 1)) |
| 40.0ms | (- (/ 1 (+ x 1)) (/ 1 (- x 1))) |
| 10.0ms | (/ 1 (+ x 1)) |
| 10.0ms | (/ 1 (- x 1)) |
| 1.4s | (fma (- (+ x 1)) (/ 1 (- (* x x) (* 1 1))) (* (+ x 1) (/ 1 (- (* x x) (* 1 1))))) |
| 1.1s | (fma (- (+ x 1)) (/ 1 (- (* x x) (* 1 1))) (* (+ x 1) (/ 1 (- (* x x) (* 1 1))))) |
| 988.0ms | (fma (- (+ x 1)) (/ 1 (- (* x x) (* 1 1))) (* (+ x 1) (/ 1 (- (* x x) (* 1 1))))) |
| 910.0ms | (fma (- (+ x 1)) (/ 1 (- (* x x) (* 1 1))) (* (+ x 1) (/ 1 (- (* x x) (* 1 1))))) |
| 900.0ms | (fma (- (+ x 1)) (/ 1 (- (* x x) (* 1 1))) (* (+ x 1) (/ 1 (- (* x x) (* 1 1))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.1b
Found 1 expressions with local error:
| 0.1b | (/ 1 (fma x x -1)) |
| 3× | associate-/r* |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | add-cbrt-cube |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rec-exp |
| 1× | expm1-log1p-u |
| 1.0ms | (/ 1 (fma x x -1)) |
| 16.0ms | (/ 1 (fma x x -1)) |
| 63.0ms | (- (+ (pow x 2) (+ (pow x 4) 1))) |
| 21.0ms | (+ (/ 1 (pow x 4)) (+ (/ 1 (pow x 6)) (/ 1 (pow x 2)))) |
| 12.0ms | (+ (/ 1 (pow x 4)) (+ (/ 1 (pow x 6)) (/ 1 (pow x 2)))) |
| 3.0ms | (sqrt (fma x x -1)) |
| 3.0ms | (cbrt (fma x x -1)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 14.9b | (cbrt (fma x x -1)) |
| 14.9b | (cbrt (fma x x -1)) |
| 14.9b | (cbrt (fma x x -1)) |
| 1.0b | (/ 1 (* (cbrt (fma x x -1)) (cbrt (fma x x -1)))) |
| 10× | pow1 |
| 9× | cbrt-prod |
| 7× | pow-flip |
| 7× | add-cube-cbrt |
| 7× | add-exp-log |
| 7× | pow1/3 |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | div-inv |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | pow2 |
| 5.0ms | (/ 1 (* (cbrt (fma x x -1)) (cbrt (fma x x -1)))) |
| 1.0ms | (cbrt (fma x x -1)) |
| 1.0ms | (cbrt (fma x x -1)) |
| 1.0ms | (cbrt (fma x x -1)) |
| 163.0ms | (/ 1 (* (cbrt (fma x x -1)) (cbrt (fma x x -1)))) |
| 126.0ms | (cbrt (fma x x -1)) |
| 121.0ms | (cbrt (fma x x -1)) |
| 120.0ms | (cbrt (fma x x -1)) |
| 198.0ms | (- (pow -1 1/3) (+ (* 1/3 (* (pow x 2) (pow -1 1/3))) (* 1/9 (* (pow x 4) (pow -1 1/3))))) |
| 190.0ms | (- (pow -1 1/3) (+ (* 1/3 (* (pow x 2) (pow -1 1/3))) (* 1/9 (* (pow x 4) (pow -1 1/3))))) |
| 184.0ms | (- (pow -1 1/3) (+ (* 1/3 (* (pow x 2) (pow -1 1/3))) (* 1/9 (* (pow x 4) (pow -1 1/3))))) |
| 117.0ms | (- (pow (/ 1 x) -2/3) (+ (* 1/9 (pow (/ 1 (pow x 10)) 1/3)) (* 1/3 (pow (/ 1 (pow x 4)) 1/3)))) |
| 107.0ms | (- (pow (/ -1 x) -2/3) (+ (* 1/9 (pow (/ 1 (pow x 10)) 1/3)) (* 1/3 (pow (/ 1 (pow x 4)) 1/3)))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 14.9b | (cbrt (fma x x -1)) |
| 14.9b | (cbrt (fma x x -1)) |
| 0.2b | (pow (cbrt (fma x x -1)) -2) |
| 0.1b | (/ (pow (cbrt (fma x x -1)) -2) (cbrt (fma x x -1))) |
| 60× | cbrt-prod |
| 54× | times-frac |
| 49× | add-cube-cbrt |
| 49× | *-un-lft-identity |
| 49× | add-sqr-sqrt |
| 48× | unpow-prod-down |
| 10× | add-exp-log |
| 9× | associate-/l* |
| 6× | associate-/r* |
| 6× | pow1 |
| 5× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | div-exp |
| 3× | pow1/3 |
| 2× | pow-exp |
| 2× | pow-pow |
| 2× | pow-to-exp |
| 1× | pow-div |
| 1× | div-inv |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 6.0ms | (/ (pow (cbrt (fma x x -1)) -2) (cbrt (fma x x -1))) |
| 1.0ms | (pow (cbrt (fma x x -1)) -2) |
| 1.0ms | (cbrt (fma x x -1)) |
| 1.0ms | (cbrt (fma x x -1)) |
| 144.0ms | (pow (cbrt (fma x x -1)) -2) |
| 114.0ms | (cbrt (fma x x -1)) |
| 114.0ms | (cbrt (fma x x -1)) |
| 22.0ms | (/ (pow (cbrt (fma x x -1)) -2) (cbrt (fma x x -1))) |
| 243.0ms | (- (pow -1 1/3) (+ (* 1/3 (* (pow x 2) (pow -1 1/3))) (* 1/9 (* (pow x 4) (pow -1 1/3))))) |
| 197.0ms | (- (pow -1 1/3) (+ (* 1/3 (* (pow x 2) (pow -1 1/3))) (* 1/9 (* (pow x 4) (pow -1 1/3))))) |
| 131.0ms | (/ (* (* (pow (cbrt (fma x x -1)) -2) (pow (cbrt (fma x x -1)) -2)) (pow (cbrt (fma x x -1)) -2)) (fma x x -1)) |
| 123.0ms | (- (pow (/ 1 x) -2/3) (+ (* 1/9 (pow (/ 1 (pow x 10)) 1/3)) (* 1/3 (pow (/ 1 (pow x 4)) 1/3)))) |
| 120.0ms | (- (pow (/ -1 x) -2/3) (+ (* 1/9 (pow (/ 1 (pow x 10)) 1/3)) (* 1/3 (pow (/ 1 (pow x 4)) 1/3)))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.3b against oracle of 0.3b and baseline of 0.3b
| 8000× | (pre true 80) |
| 4202× | (body real 80) |
| 1895× | (body real 640) |
| 1225× | (body real 320) |
| 678× | (body real 160) |