


Bits error versus x
if x < -0.026465599327529912 or 0.033509852340848724 < x Initial program 0.1
rmApplied div-sub0.1
if -0.026465599327529912 < x < 0.033509852340848724Initial program 62.8
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 58.8s)Debug log
| 350.0ms | 60× | body | 2560 | valid |
| 127.0ms | 82× | body | 1280 | valid |
| 43.0ms | 45× | body | 640 | valid |
| 25.0ms | 37× | body | 320 | valid |
| 8.0ms | 16× | body | 160 | valid |
| 4.0ms | 16× | body | 80 | valid |
| 14.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 31.3b
Found 3 expressions with local error:
| 0.7b | (- x (sin x)) |
| 0.7b | (- x (tan 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× | log1p-expm1-u |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 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 |
| 5.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 3.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
| 89.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 72.0ms | (- x (tan x)) |
| 46.0ms | (- x (sin x)) |
| 236.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))))) |
| 234.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 221.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))))) |
| 211.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 89.0ms | (- (+ (* 1/6 (pow x 3)) (* 1/5040 (pow x 7))) (* 1/120 (pow x 5))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (- x (tan x)) |
| 0.7b | (- x (tan x)) |
| 0.4b | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 0.1b | (/ (sin x) (- x (tan x))) |
| 90× | prod-diff |
| 75× | add-sqr-sqrt |
| 72× | *-un-lft-identity |
| 70× | add-cube-cbrt |
| 64× | times-frac |
| 50× | associate-/r/ |
| 28× | flip-- |
| 28× | flip3-- |
| 25× | div-inv |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | fma-neg |
| 6× | add-cbrt-cube |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | distribute-rgt-out-- |
| 3× | sub-neg |
| 3× | associate-/r* |
| 2× | difference-of-squares |
| 1× | sub-div |
| 1× | distribute-lft-out-- |
| 1× | frac-sub |
| 1× | div-exp |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 8.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 3.0ms | (/ (sin x) (- x (tan x))) |
| 1.0ms | (- x (tan x)) |
| 0.0ms | (- x (tan x)) |
| 274.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 77.0ms | (- x (tan x)) |
| 77.0ms | (/ (sin x) (- x (tan x))) |
| 58.0ms | (- x (tan x)) |
| 644.0ms | (fma (/ x (- (pow x 3) (pow (tan x) 3))) (+ (* x x) (+ (* (tan x) (tan x)) (* x (tan x)))) (- (* (cbrt (/ (sin x) (- x (tan x)))) (* (cbrt (/ (sin x) (- x (tan x)))) (cbrt (/ (sin x) (- x (tan x)))))))) |
| 498.0ms | (fma (/ x (- (* x x) (* (tan x) (tan x)))) (+ x (tan x)) (- (* (/ (sin x) (- x (tan x))) 1))) |
| 456.0ms | (fma x (/ 1 (- x (tan x))) (- (* (/ (cbrt (sin x)) (- x (tan x))) (/ (* (cbrt (sin x)) (cbrt (sin x))) 1)))) |
| 445.0ms | (fma (/ x (- (* x x) (* (tan x) (tan x)))) (+ x (tan x)) (- (* (/ (sin x) (- x (tan x))) (/ 1 1)))) |
| 422.0ms | (fma (sqrt (/ x (- x (tan x)))) (sqrt (/ x (- x (tan x)))) (- (* (/ (sin x) (cbrt (- x (tan x)))) (/ 1 (* (cbrt (- x (tan x))) (cbrt (- x (tan x)))))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.2b | (* 9/40 x) |
| 0.1b | (fma -27/2800 (pow x 4) -1/2) |
| 0.0b | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | *-un-lft-identity |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 3× | add-sqr-sqrt |
| 2× | fma-udef |
| 1× | *-commutative |
| 0.0ms | (* 9/40 x) |
| 0.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 0.0ms | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 33.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 23.0ms | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 8.0ms | (* 9/40 x) |
| 66.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 66.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 63.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 13.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
| 13.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 14.1b | (/ (- (* x x) (* (sin x) (sin x))) (* (- x (tan x)) (+ x (sin x)))) |
| 0.7b | (- (* x x) (* (sin x) (sin x))) |
| 0.7b | (- x (tan x)) |
| 0.2b | (* (sin x) (sin x)) |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 9× | pow1 |
| 8× | add-cube-cbrt |
| 8× | associate-/r/ |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | flip-- |
| 6× | flip3-- |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | times-frac |
| 4× | frac-times |
| 4× | expm1-log1p-u |
| 3× | difference-of-squares |
| 3× | flip-+ |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | flip3-+ |
| 2× | associate-/l/ |
| 2× | sqr-sin |
| 2× | cbrt-unprod |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | div-exp |
| 2× | sub-neg |
| 2× | cbrt-undiv |
| 1× | associate--r- |
| 1× | sin-mult |
| 1× | div-inv |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | prod-diff |
| 1× | div-sub |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | pow2 |
| 17.0ms | (/ (- (* x x) (* (sin x) (sin x))) (* (- x (tan x)) (+ x (sin x)))) |
| 7.0ms | (* (sin x) (sin x)) |
| 5.0ms | (- (* x x) (* (sin x) (sin x))) |
| 1.0ms | (- x (tan x)) |
| 149.0ms | (/ (- (* x x) (* (sin x) (sin x))) (* (- x (tan x)) (+ x (sin x)))) |
| 77.0ms | (- x (tan x)) |
| 45.0ms | (- (* x x) (* (sin x) (sin x))) |
| 23.0ms | (* (sin x) (sin x)) |
| 609.0ms | (/ (* x x) (* (- x (tan x)) (+ x (sin x)))) |
| 545.0ms | (/ (- (* x x) (* (sin x) (sin x))) (+ x (sin x))) |
| 265.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))))) |
| 255.0ms | (* (+ x (tan x)) (+ (* x x) (- (* (sin x) (sin x)) (* x (sin x))))) |
| 246.0ms | (/ (* (* (- (* x x) (* (sin x) (sin x))) (- (* x x) (* (sin x) (sin x)))) (- (* x x) (* (sin x) (sin x)))) (* (* (* (- x (tan x)) (- x (tan x))) (- x (tan x))) (* (* (+ x (sin x)) (+ x (sin x))) (+ x (sin x))))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.4b
| 6.4s | 1601× | body | 2560 | valid |
| 6.0s | 2768× | body | 1280 | valid |
| 2.6s | 1825× | body | 640 | valid |
| 1.2s | 933× | body | 320 | valid |
| 284.0ms | 474× | body | 160 | valid |
| 103.0ms | 399× | body | 80 | valid |