


Bits error versus x
Results
if x < -0.02980904249937881Initial program 0.0
rmApplied div-sub0.0
if -0.02980904249937881 < x < 0.026383143248524282Initial program 62.8
rmApplied div-sub62.8
Taylor expanded around 0 0.0
if 0.026383143248524282 < x Initial program 0.0
rmApplied div-sub0.0
rmApplied sub-div0.0
Final simplification0.0
herbie shell --seed 1042149663
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 38.0s)Debug log
| 256× | (pre true 80) |
| 91× | (body real 1280) |
| 66× | (body real 640) |
| 50× | (body real 2560) |
| 27× | (body real 320) |
| 13× | (body real 160) |
| 9× | (body real 80) |
| 19.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 31.1b
Found 3 expressions with local error:
| 1.5b | (- x (sin x)) |
| 1.5b | (- 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))) |
| 1.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
| 177.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 107.0ms | (- x (tan x)) |
| 61.0ms | (- x (sin x)) |
| 340.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))))) |
| 316.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))))) |
| 263.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 192.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 108.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.5b | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 1.5b | (- x (tan x)) |
| 1.5b | (- x (tan x)) |
| 0.1b | (/ (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 |
| 14.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 8.0ms | (/ (sin x) (- x (tan x))) |
| 1.0ms | (- x (tan x)) |
| 1.0ms | (- x (tan x)) |
| 407.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 115.0ms | (/ (sin x) (- x (tan x))) |
| 97.0ms | (- x (tan x)) |
| 96.0ms | (- x (tan x)) |
| 535.0ms | (/ (* (* (sin x) (sin x)) (sin x)) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 380.0ms | (- (* x (- x (tan x))) (* (- x (tan x)) (sin x))) |
| 291.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))))) |
| 285.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))))) |
| 271.0ms | (+ (/ (pow (sin x) 2) (* (cos x) (pow x 2))) (+ (/ (pow (sin x) 3) (* (pow (cos x) 2) (pow x 3))) (/ (sin x) x))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 1.5b | (- x (sin x)) |
| 1.5b | (- 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))) |
| 1.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
| 149.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 98.0ms | (- x (tan x)) |
| 61.0ms | (- x (sin x)) |
| 292.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))))) |
| 287.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))))) |
| 263.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 188.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 105.0ms | (- (+ (* 1/6 (pow x 3)) (* 1/5040 (pow x 7))) (* 1/120 (pow x 5))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 3 expressions with local error:
| 16.5b | (- (* 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)) |
| 40.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 36.0ms | (* 27/2800 (pow x 4)) |
| 23.0ms | (* 9/40 (pow x 2)) |
| 149.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (* 27/2800 (pow x 4)) 1/2))) |
| 93.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 92.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 90.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 8.0ms | (* 9/40 (pow x 2)) |
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 30.9b
| 8000× | (pre true 80) |
| 2713× | (body real 1280) |
| 1893× | (body real 640) |
| 1615× | (body real 2560) |
| 929× | (body real 320) |
| 487× | (body real 160) |
| 363× | (body real 80) |