



Bits error versus x
Results
| Original | 14.9 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
if x < -16800330478070782.0 or 521.0581431275527 < x Initial program 30.9
rmApplied add-sqr-sqrt30.9
Applied associate-/r*30.8
Taylor expanded around -inf 0.0
if -16800330478070782.0 < x < 521.0581431275527Initial program 0.0
rmApplied add-sqr-sqrt0.0
Applied associate-/r*0.0
rmApplied add-cbrt-cube0.0
Final simplification0.0
herbie shell --seed 2019022
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 22.7s)Debug log
| 19.0ms | 256× | body | 80 | valid |
| 4.0ms | (/ x (+ (* x x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 13.7b
Found 1 expressions with local error:
| 13.7b | (/ x (+ (* x x) 1)) |
| 3× | associate-/r* |
| 2× | add-cube-cbrt |
| 2× | associate-/r/ |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 1.0ms | (/ x (+ (* x x) 1)) |
| 18.0ms | (/ x (+ (* x x) 1)) |
| 205.0ms | (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1))) |
| 34.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 30.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 17.0ms | (- (+ x (pow x 5)) (pow x 3)) |
| 16.0ms | (- (* x x) 1) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 13.6b | (sqrt (+ (* x x) 1)) |
| 13.6b | (sqrt (+ (* x x) 1)) |
| 0.0b | (/ x (sqrt (+ (* x x) 1))) |
| 0.0b | (/ (/ x (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1))) |
| 36× | times-frac |
| 31× | add-sqr-sqrt |
| 30× | sqrt-prod |
| 29× | add-cube-cbrt |
| 29× | *-un-lft-identity |
| 22× | sqrt-div |
| 18× | associate-/r/ |
| 12× | associate-/r* |
| 11× | flip-+ |
| 11× | flip3-+ |
| 9× | div-inv |
| 6× | associate-/l* |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | pow1 |
| 2× | pow1/2 |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rem-sqrt-square |
| 1× | associate-/l/ |
| 1× | div-exp |
| 1× | cbrt-undiv |
| 9.0ms | (/ (/ x (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1))) |
| 2.0ms | (sqrt (+ (* x x) 1)) |
| 2.0ms | (sqrt (+ (* x x) 1)) |
| 1.0ms | (/ x (sqrt (+ (* x x) 1))) |
| 37.0ms | (/ x (sqrt (+ (* x x) 1))) |
| 27.0ms | (sqrt (+ (* x x) 1)) |
| 26.0ms | (/ (/ x (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1))) |
| 26.0ms | (sqrt (+ (* x x) 1)) |
| 272.0ms | (/ (sqrt (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1)))) (sqrt (sqrt (+ (* x x) 1)))) |
| 230.0ms | (/ (sqrt (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1)))) (sqrt (+ (* x x) 1))) |
| 225.0ms | (/ (sqrt (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1)))) (sqrt (cbrt (+ (* x x) 1)))) |
| 215.0ms | (/ (* (* (/ x (sqrt (+ (* x x) 1))) (/ x (sqrt (+ (* x x) 1)))) (/ x (sqrt (+ (* x x) 1)))) (* (* (sqrt (+ (* x x) 1)) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)))) |
| 203.0ms | (/ (sqrt (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1)))) (sqrt (+ (* x x) 1))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 17.3b | (cbrt (* (* (sqrt (+ (* x x) 1)) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)))) |
| 13.6b | (sqrt (+ (* x x) 1)) |
| 13.6b | (sqrt (+ (* x x) 1)) |
| 13.6b | (sqrt (+ (* x x) 1)) |
| 60× | sqrt-div |
| 30× | flip-+ |
| 30× | flip3-+ |
| 28× | frac-times |
| 26× | cbrt-div |
| 14× | associate-*l/ |
| 10× | add-sqr-sqrt |
| 9× | sqrt-prod |
| 8× | associate-*r/ |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | pow1/2 |
| 3× | rem-sqrt-square |
| 1× | rem-cbrt-cube |
| 1× | pow3 |
| 1× | pow1/3 |
| 1× | cbrt-prod |
| 29.0ms | (cbrt (* (* (sqrt (+ (* x x) 1)) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)))) |
| 4.0ms | (sqrt (+ (* x x) 1)) |
| 4.0ms | (sqrt (+ (* x x) 1)) |
| 4.0ms | (sqrt (+ (* x x) 1)) |
| 30.0ms | (sqrt (+ (* x x) 1)) |
| 27.0ms | (cbrt (* (* (sqrt (+ (* x x) 1)) (sqrt (+ (* x x) 1))) (sqrt (+ (* x x) 1)))) |
| 26.0ms | (sqrt (+ (* x x) 1)) |
| 26.0ms | (sqrt (+ (* x x) 1)) |
| 501.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
| 422.0ms | (cbrt (* (* (sqrt (+ (pow (* x x) 3) (pow 1 3))) (sqrt (+ (pow (* x x) 3) (pow 1 3)))) (sqrt (- (* (* x x) (* x x)) (* 1 1))))) |
| 262.0ms | (cbrt (* (* (sqrt (+ (* x x) 1)) (sqrt (+ (* x x) 1))) (sqrt (- (* (* x x) (* x x)) (* 1 1))))) |
| 198.0ms | (cbrt (* (* (sqrt (- (* (* x x) (* x x)) (* 1 1))) (sqrt (+ (pow (* x x) 3) (pow 1 3)))) (sqrt (- (* (* x x) (* x x)) (* 1 1))))) |
| 189.0ms | (cbrt (* (* (sqrt (- (* (* x x) (* x x)) (* 1 1))) (sqrt (+ (pow (* x x) 3) (pow 1 3)))) (sqrt (+ (pow (* x x) 3) (pow 1 3))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 17.9b | (* (/ x (- (* (* x x) (* x x)) (* 1 1))) (- (* x x) 1)) |
| 2.2b | (/ x (- (* (* x x) (* x x)) (* 1 1))) |
| 0.2b | (* (* x x) (* x x)) |
| 0.0b | (- (* x x) 1) |
| 11× | pow1 |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 7× | add-cube-cbrt |
| 7× | associate-*l* |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 5× | flip-- |
| 5× | associate-*r* |
| 5× | flip3-- |
| 5× | pow2 |
| 4× | add-log-exp |
| 4× | associate-/r/ |
| 4× | associate-/r* |
| 3× | pow-prod-down |
| 3× | sub-neg |
| 2× | div-inv |
| 2× | cbrt-unprod |
| 2× | pow-prod-up |
| 2× | *-commutative |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | difference-of-sqr-1 |
| 2× | distribute-lft-in |
| 2× | frac-times |
| 2× | distribute-rgt-in |
| 1× | difference-of-squares |
| 1× | associate-*l/ |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | clear-num |
| 13.0ms | (* (/ x (- (* (* x x) (* x x)) (* 1 1))) (- (* x x) 1)) |
| 6.0ms | (/ x (- (* (* x x) (* x x)) (* 1 1))) |
| 6.0ms | (* (* x x) (* x x)) |
| 3.0ms | (- (* x x) 1) |
| 57.0ms | (/ x (- (* (* x x) (* x x)) (* 1 1))) |
| 50.0ms | (* (/ x (- (* (* x x) (* x x)) (* 1 1))) (- (* x x) 1)) |
| 25.0ms | (- (* x x) 1) |
| 13.0ms | (* (* x x) (* x x)) |
| 1.6s | (* (* (* (/ x (- (* (* x x) (* x x)) (* 1 1))) (/ x (- (* (* x x) (* x x)) (* 1 1)))) (/ x (- (* (* x x) (* x x)) (* 1 1)))) (* (* (- (* x x) 1) (- (* x x) 1)) (- (* x x) 1))) |
| 678.0ms | (* (- 1) (/ x (- (* (* x x) (* x x)) (* 1 1)))) |
| 587.0ms | (* (- 1) (/ x (- (* (* x x) (* x x)) (* 1 1)))) |
| 559.0ms | (* (/ x (- (* (* x x) (* x x)) (* 1 1))) (- 1)) |
| 489.0ms | (* (/ x (- (* (* x x) (* x x)) (* 1 1))) (- 1)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
99.9% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 19.6b
| 608.0ms | 8000× | body | 80 | valid |