


Bits error versus x
Results
if x < -0.02835376382194105 or 0.029570961685677147 < x Initial program 0.0
if -0.02835376382194105 < x < 0.029570961685677147Initial program 62.7
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 323378853
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 41.2s)Debug log
| 317.0ms | 50× | body | 2560 | valid |
| 227.0ms | 85× | body | 1280 | valid |
| 113.0ms | 66× | body | 640 | valid |
| 56.0ms | 28× | body | 320 | valid |
| 16.0ms | 19× | body | 160 | valid |
| 4.0ms | 8× | body | 80 | valid |
| 54.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 31.5b
Found 3 expressions with local error:
| 1.1b | (- x (tan x)) |
| 0.9b | (- x (sin x)) |
| 0.0b | (/ (- x (sin x)) (- x (tan x))) |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | times-frac |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 4× | flip-- |
| 4× | flip3-- |
| 3× | add-log-exp |
| 3× | associate-/l* |
| 3× | associate-/r* |
| 3× | pow1 |
| 2× | associate-/l/ |
| 2× | associate-/r/ |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | div-exp |
| 1× | div-sub |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 7.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 1.0ms | (- x (tan x)) |
| 1.0ms | (- x (sin x)) |
| 154.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 104.0ms | (- x (tan x)) |
| 68.0ms | (- x (sin x)) |
| 283.0ms | (- (+ 1 (+ (/ (pow (sin x) 2) (* (pow (cos x) 2) (pow x 2))) (/ (sin x) (* (cos x) x)))) (+ (/ (sin x) x) (/ (pow (sin x) 2) (* (cos x) (pow x 2))))) |
| 282.0ms | (- (+ 1 (+ (/ (pow (sin x) 2) (* (pow (cos x) 2) (pow x 2))) (/ (sin x) (* (cos x) x)))) (+ (/ (sin x) x) (/ (pow (sin x) 2) (* (cos x) (pow x 2))))) |
| 254.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 183.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 99.0ms | (- (+ (* 1/6 (pow x 3)) (* 1/5040 (pow x 7))) (* 1/120 (pow x 5))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 15.0b | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 0.2b | (* 9/40 (pow x 2)) |
| 0.1b | (* 27/2800 (pow x 4)) |
| 7× | associate-*r* |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | *-commutative |
| 1× | unpow2 |
| 1× | associate--r+ |
| 1× | flip-- |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 11.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 3.0ms | (* 9/40 (pow x 2)) |
| 3.0ms | (* 27/2800 (pow x 4)) |
| 48.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 32.0ms | (* 27/2800 (pow x 4)) |
| 24.0ms | (* 9/40 (pow x 2)) |
| 147.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (* 27/2800 (pow x 4)) 1/2))) |
| 89.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 89.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 87.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 8.0ms | (* 9/40 (pow x 2)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.3b | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 15.3b | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 15.3b | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 15.0b | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 9× | cbrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | cbrt-div |
| 4× | flip-- |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 3× | pow1/3 |
| 1× | associate--r+ |
| 1× | diff-log |
| 1× | sub-neg |
| 11.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 9.0ms | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 9.0ms | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 9.0ms | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 238.0ms | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 225.0ms | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 218.0ms | (cbrt (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))) |
| 53.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 465.0ms | (- (pow -1/2 1/3) (+ (* 3/20 (* (pow x 2) (pow -1/2 1/3))) (* 9/560 (* (pow x 4) (pow -1/2 1/3))))) |
| 416.0ms | (- (pow -1/2 1/3) (+ (* 3/20 (* (pow x 2) (pow -1/2 1/3))) (* 9/560 (* (pow x 4) (pow -1/2 1/3))))) |
| 397.0ms | (- (exp (* 1/3 (- (log -27/2800) (* 4 (log (/ 1 x)))))) (+ (* 70/9 (/ (exp (* 1/3 (- (log -27/2800) (* 4 (log (/ 1 x)))))) (pow x 2))) (* 3500/81 (/ (exp (* 1/3 (- (log -27/2800) (* 4 (log (/ 1 x)))))) (pow x 4))))) |
| 366.0ms | (cbrt (- (pow (* 9/40 (pow x 2)) 3) (pow (+ (* 27/2800 (pow x 4)) 1/2) 3))) |
| 353.0ms | (- (pow -1/2 1/3) (+ (* 3/20 (* (pow x 2) (pow -1/2 1/3))) (* 9/560 (* (pow x 4) (pow -1/2 1/3))))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 32.0b
| 10.8s | 1567× | body | 2560 | valid |
| 10.2s | 2758× | body | 1280 | valid |
| 4.0s | 1925× | body | 640 | valid |
| 1.6s | 940× | body | 320 | valid |
| 584.0ms | 474× | body | 160 | valid |
| 173.0ms | 336× | body | 80 | valid |