


Bits error versus x
Results
if x < -12259.563905676921 or 12260.049492977074 < x Initial program 29.9
Taylor expanded around inf 0.7
rmApplied pow-flip0.0
Simplified0.0
if -12259.563905676921 < x < 12260.049492977074Initial program 0.1
Final simplification0.1
herbie shell --seed 1137770271
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 14.8s)Debug log
| 55× | 47.0ms | (body real 640) |
| 144× | 30.0ms | (body real 80) |
| 38× | 24.0ms | (body real 320) |
| 256× | 8.0ms | (pre true 80) |
| 19× | 8.0ms | (body real 160) |
| 12.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 12.1b
Found 1 expressions with local error:
| 2.6b | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 5× | *-un-lft-identity |
| 4× | distribute-lft-out-- |
| 4× | div-inv |
| 3× | add-log-exp |
| 3× | add-sqr-sqrt |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | frac-sub |
| 1× | add-exp-log |
| 1× | diff-log |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | pow1 |
| 12.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 33.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 524.0ms | (- 1 (+ x (/ 1 x))) |
| 94.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 91.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 50.0ms | (- (* 1 x) (* (+ x 1) 1)) |
| 34.0ms | (/ (exp (/ 1 (+ x 1))) (exp (/ 1 x))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.8b
Found 4 expressions with local error:
| 11.5b | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 0.9b | (/ 1 (pow x 2)) |
| 0.5b | (/ 1 (pow x 4)) |
| 0.3b | (/ 1 (pow x 3)) |
| 22× | *-un-lft-identity |
| 16× | div-inv |
| 12× | associate-/r* |
| 10× | distribute-lft-out-- |
| 9× | add-log-exp |
| 9× | add-sqr-sqrt |
| 8× | distribute-lft-out |
| 7× | add-cube-cbrt |
| 7× | add-exp-log |
| 6× | rec-exp |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | inv-pow |
| 3× | pow-flip |
| 3× | frac-sub |
| 3× | frac-2neg |
| 3× | clear-num |
| 3× | pow-to-exp |
| 2× | diff-log |
| 1× | difference-of-squares |
| 1× | unpow2 |
| 1× | associate--r+ |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | frac-add |
| 1× | unpow3 |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | cube-mult |
| 63.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 4.0ms | (/ 1 (pow x 2)) |
| 4.0ms | (/ 1 (pow x 4)) |
| 3.0ms | (/ 1 (pow x 3)) |
| 45.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 40.0ms | (/ 1 (pow x 3)) |
| 32.0ms | (/ 1 (pow x 4)) |
| 24.0ms | (/ 1 (pow x 2)) |
| 886.0ms | (* (pow x 3) (- (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 690.0ms | (- (* 1 (- (/ 1 (pow x 4)) (/ 1 (pow x 2)))) (* (pow x 3) (- (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (* (/ 1 (pow x 2)) (/ 1 (pow x 2)))))) |
| 637.0ms | (* (pow x 3) (+ (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (- (* (/ 1 (pow x 2)) (/ 1 (pow x 2))) (* (/ 1 (pow x 4)) (/ 1 (pow x 2)))))) |
| 388.0ms | (- (* 1 (* (pow x 4) (pow x 2))) (* (pow x 3) (+ (* 1 (pow x 2)) (* (pow x 4) 1)))) |
| 294.0ms | (- (* 1 (+ (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (- (* (/ 1 (pow x 2)) (/ 1 (pow x 2))) (* (/ 1 (pow x 4)) (/ 1 (pow x 2)))))) (* (pow x 3) (+ (pow (/ 1 (pow x 4)) 3) (pow (/ 1 (pow x 2)) 3)))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 11.5b | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (pow x -2))) |
| 0.5b | (/ 1 (pow x 4)) |
| 0.3b | (/ 1 (pow x 3)) |
| 0.0b | (+ (/ 1 (pow x 4)) (pow x -2)) |
| 20× | *-un-lft-identity |
| 11× | add-log-exp |
| 8× | div-inv |
| 8× | associate-/r* |
| 8× | add-sqr-sqrt |
| 6× | distribute-lft-out-- |
| 6× | distribute-lft-out |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | rec-exp |
| 4× | pow1 |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | flip-+ |
| 2× | frac-sub |
| 2× | diff-log |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | sum-log |
| 2× | clear-num |
| 2× | pow-to-exp |
| 1× | difference-of-squares |
| 1× | associate--r+ |
| 1× | flip-- |
| 1× | unpow3 |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | +-commutative |
| 1× | cube-mult |
| 29.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (pow x -2))) |
| 11.0ms | (+ (/ 1 (pow x 4)) (pow x -2)) |
| 2.0ms | (/ 1 (pow x 4)) |
| 2.0ms | (/ 1 (pow x 3)) |
| 77.0ms | (+ (/ 1 (pow x 4)) (pow x -2)) |
| 30.0ms | (/ 1 (pow x 3)) |
| 28.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (pow x -2))) |
| 26.0ms | (/ 1 (pow x 4)) |
| 378.0ms | (- (* 1 (- (/ 1 (pow x 4)) (pow x -2))) (* (pow x 3) (- (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (* (pow x -2) (pow x -2))))) |
| 300.0ms | (* (pow x 3) (+ (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (- (* (pow x -2) (pow x -2)) (* (/ 1 (pow x 4)) (pow x -2))))) |
| 258.0ms | (* (pow x 3) (- (/ 1 (pow x 4)) (pow x -2))) |
| 165.0ms | (- (* 1 (+ (* (/ 1 (pow x 4)) (/ 1 (pow x 4))) (- (* (pow x -2) (pow x -2)) (* (/ 1 (pow x 4)) (pow x -2))))) (* (pow x 3) (+ (pow (/ 1 (pow x 4)) 3) (pow (pow x -2) 3)))) |
| 102.0ms | (/ (exp (/ 1 (pow x 3))) (exp (+ (/ 1 (pow x 4)) (pow x -2)))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.1b against oracle of 0.1b and baseline of 15.1b
| 1903× | 1.0s | (body real 640) |
| 4159× | 600.0ms | (body real 80) |
| 1286× | 542.0ms | (body real 320) |
| 656× | 221.0ms | (body real 160) |
| 8004× | 198.0ms | (pre true 80) |