


Bits error versus x
Results
if x < -0.027951512842069898Initial program 0.0
rmApplied div-sub0.0
if -0.027951512842069898 < x < 0.02594659916186999Initial program 62.7
rmApplied div-sub62.6
Taylor expanded around 0 0.0
if 0.02594659916186999 < x Initial program 0.1
rmApplied *-un-lft-identity0.1
Applied associate-/l*0.1
rmApplied div-inv0.2
Applied associate-/r*0.1
Final simplification0.0
herbie shell --seed 2019021
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 35.0s)Debug log
| 191.0ms | 48× | body | 2560 | valid |
| 152.0ms | 79× | body | 1280 | valid |
| 67.0ms | 71× | body | 640 | valid |
| 17.0ms | 30× | body | 320 | valid |
| 11.0ms | 17× | body | 160 | valid |
| 3.0ms | 11× | body | 80 | valid |
| 41.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.6b
Found 3 expressions with local error:
| 1.8b | (- x (sin x)) |
| 1.8b | (- 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× | 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 |
| 6.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 3.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
| 86.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 78.0ms | (- x (tan x)) |
| 65.0ms | (- x (sin x)) |
| 220.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))))) |
| 178.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))))) |
| 170.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 99.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 68.0ms | (- (+ (* 1/6 (pow x 3)) (* 1/5040 (pow x 7))) (* 1/120 (pow x 5))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.8b | (- x (sin x)) |
| 1.8b | (- x (tan x)) |
| 0.0b | (/ 1 (/ (- x (tan x)) (- x (sin x)))) |
| 0.0b | (/ (- x (tan x)) (- x (sin x))) |
| 19× | add-cube-cbrt |
| 19× | *-un-lft-identity |
| 19× | add-sqr-sqrt |
| 18× | times-frac |
| 18× | associate-/r* |
| 9× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | flip-- |
| 5× | associate-/r/ |
| 5× | flip3-- |
| 5× | pow1 |
| 4× | add-log-exp |
| 3× | associate-/l* |
| 3× | div-inv |
| 2× | associate-/l/ |
| 2× | div-exp |
| 2× | frac-2neg |
| 2× | sub-neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | div-sub |
| 1× | cbrt-undiv |
| 4.0ms | (/ (- x (tan x)) (- x (sin x))) |
| 1.0ms | (/ 1 (/ (- x (tan x)) (- x (sin x)))) |
| 1.0ms | (- x (sin x)) |
| 0.0ms | (- x (tan x)) |
| 97.0ms | (/ 1 (/ (- x (tan x)) (- x (sin x)))) |
| 97.0ms | (/ (- x (tan x)) (- x (sin x))) |
| 67.0ms | (- x (tan x)) |
| 52.0ms | (- x (sin x)) |
| 169.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))))) |
| 164.0ms | (- (+ (/ (pow (sin x) 2) (pow x 2)) (+ (/ (sin x) x) 1)) (+ (/ (sin x) (* (cos x) x)) (/ (pow (sin x) 2) (* (cos x) (pow x 2))))) |
| 163.0ms | (/ (* (* (- x (tan x)) (- x (tan x))) (- x (tan x))) (* (* (- x (sin x)) (- x (sin x))) (- x (sin x)))) |
| 146.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))))) |
| 144.0ms | (- (+ (/ (pow (sin x) 2) (pow x 2)) (+ (/ (sin x) x) 1)) (+ (/ (sin x) (* (cos x) x)) (/ (pow (sin x) 2) (* (cos x) (pow x 2))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.8b | (- x (sin x)) |
| 1.8b | (- x (tan x)) |
| 0.0b | (/ (/ 1 (- x (tan x))) (/ 1 (- x (sin x)))) |
| 0.0b | (/ 1 (- x (tan x))) |
| 36× | times-frac |
| 31× | associate-/r/ |
| 19× | add-cube-cbrt |
| 19× | *-un-lft-identity |
| 19× | add-sqr-sqrt |
| 17× | flip-- |
| 17× | flip3-- |
| 16× | div-inv |
| 13× | add-exp-log |
| 9× | associate-/r* |
| 6× | associate-/l* |
| 6× | add-cbrt-cube |
| 5× | rec-exp |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | div-exp |
| 2× | frac-2neg |
| 2× | sub-neg |
| 2× | clear-num |
| 1× | associate-/l/ |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | cbrt-undiv |
| 7.0ms | (/ (/ 1 (- x (tan x))) (/ 1 (- x (sin x)))) |
| 1.0ms | (/ 1 (- x (tan x))) |
| 1.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
| 82.0ms | (- x (tan x)) |
| 75.0ms | (/ 1 (- x (tan x))) |
| 69.0ms | (/ (/ 1 (- x (tan x))) (/ 1 (- x (sin x)))) |
| 48.0ms | (- x (sin x)) |
| 1.3s | (/ (* (* (/ 1 (- x (tan x))) (/ 1 (- x (tan x)))) (/ 1 (- x (tan x)))) (* (* (/ 1 (- x (sin x))) (/ 1 (- x (sin x)))) (/ 1 (- x (sin x))))) |
| 569.0ms | (+ (/ (pow (sin x) 2) (* (pow (cos x) 2) (pow x 3))) (+ (/ (sin x) (* (cos x) (pow x 2))) (/ 1 x))) |
| 501.0ms | (/ (/ 1 (- x (tan x))) (/ 1 (- x (sin x)))) |
| 453.0ms | (/ (/ 1 (- x (tan x))) (/ 1 (- x (sin x)))) |
| 427.0ms | (/ (/ 1 (- x (tan x))) (/ 1 (- x (sin x)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.8b | (- x (tan x)) |
| 1.8b | (- x (tan x)) |
| 1.4b | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 0.2b | (/ (sin x) (- x (tan x))) |
| 17× | add-sqr-sqrt |
| 14× | *-un-lft-identity |
| 12× | add-cube-cbrt |
| 10× | times-frac |
| 6× | add-log-exp |
| 6× | flip-- |
| 6× | associate-/r/ |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | flip3-- |
| 4× | pow1 |
| 3× | associate-/l* |
| 3× | div-inv |
| 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 |
| 11.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 6.0ms | (/ (sin x) (- x (tan x))) |
| 1.0ms | (- x (tan x)) |
| 1.0ms | (- x (tan x)) |
| 260.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 79.0ms | (/ (sin x) (- x (tan x))) |
| 71.0ms | (- x (tan x)) |
| 55.0ms | (- x (tan x)) |
| 279.0ms | (/ (* (* (sin x) (sin x)) (sin x)) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 175.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))))) |
| 159.0ms | (- (* x (- x (tan x))) (* (- x (tan x)) (sin x))) |
| 153.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))))) |
| 149.0ms | (+ (/ (pow (sin x) 2) (* (cos x) (pow x 2))) (+ (/ (pow (sin x) 3) (* (pow (cos x) 2) (pow x 3))) (/ (sin x) x))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.7b
| 7.0s | 1635× | body | 2560 | valid |
| 4.7s | 2737× | body | 1280 | valid |
| 1.8s | 1809× | body | 640 | valid |
| 710.0ms | 933× | body | 320 | valid |
| 327.0ms | 511× | body | 160 | valid |
| 87.0ms | 375× | body | 80 | valid |