


Bits error versus x
Results
if x < -0.026318664286226652 or 0.02873017490672516 < x Initial program 0.0
rmApplied div-sub0.0
rmApplied add-cube-cbrt0.1
if -0.026318664286226652 < x < 0.02873017490672516Initial program 62.8
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 1137770271
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 41.5s)Debug log
| 58× | 432.0ms | (body real 2560) |
| 82× | 239.0ms | (body real 1280) |
| 62× | 123.0ms | (body real 640) |
| 35× | 50.0ms | (body real 320) |
| 12× | 11.0ms | (body real 160) |
| 256× | 8.0ms | (pre true 80) |
| 7× | 5.0ms | (body real 80) |
| 19.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.9b
Found 3 expressions with local error:
| 0.9b | (- x (sin x)) |
| 0.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 |
| 9.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 1.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
| 212.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 144.0ms | (- x (tan x)) |
| 75.0ms | (- x (sin x)) |
| 339.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))))) |
| 298.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 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))))) |
| 249.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 124.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 3 expressions with local error:
| 17.2b | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 0.1b | (* 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 |
| 12.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 3.0ms | (* 27/2800 (pow x 4)) |
| 3.0ms | (* 9/40 (pow x 2)) |
| 58.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 44.0ms | (* 27/2800 (pow x 4)) |
| 32.0ms | (* 9/40 (pow x 2)) |
| 174.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (* 27/2800 (pow x 4)) 1/2))) |
| 122.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)) |
| 86.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 11.0ms | (* 9/40 (pow x 2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.8b | (- x (tan x)) |
| 0.8b | (- x (tan x)) |
| 0.5b | (- (/ x (- x (tan x))) (/ (sin x) (- 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 |
| 21.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 11.0ms | (/ (sin x) (- x (tan x))) |
| 2.0ms | (- x (tan x)) |
| 1.0ms | (- x (tan x)) |
| 576.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 161.0ms | (- x (tan x)) |
| 141.0ms | (- x (tan x)) |
| 131.0ms | (/ (sin x) (- x (tan x))) |
| 565.0ms | (/ (* (* (sin x) (sin x)) (sin x)) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 438.0ms | (- (* x (- x (tan x))) (* (- x (tan x)) (sin x))) |
| 337.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))))) |
| 320.0ms | (+ (/ (pow (sin x) 2) (* (cos x) (pow x 2))) (+ (/ (pow (sin x) 3) (* (pow (cos x) 2) (pow x 3))) (/ (sin x) x))) |
| 320.0ms | (+ (/ (pow (sin x) 2) (* (cos x) (pow x 2))) (+ (/ (pow (sin x) 3) (* (pow (cos x) 2) (pow x 3))) (/ (sin x) x))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.8b | (- x (tan x)) |
| 0.8b | (- x (tan x)) |
| 0.8b | (- x (tan x)) |
| 0.8b | (- x (tan x)) |
| 4× | add-log-exp |
| 4× | flip-- |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | *-un-lft-identity |
| 4× | sub-neg |
| 4× | pow1 |
| 4× | add-sqr-sqrt |
| 1.0ms | (- x (tan x)) |
| 1.0ms | (- x (tan x)) |
| 1.0ms | (- x (tan x)) |
| 1.0ms | (- x (tan x)) |
| 103.0ms | (- x (tan x)) |
| 102.0ms | (- x (tan x)) |
| 102.0ms | (- x (tan x)) |
| 99.0ms | (- x (tan x)) |
| 215.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 209.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 185.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 183.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 11.0ms | (- x (/ (sin x) (cos x))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 32.1b
| 1575× | 10.2s | (body real 2560) |
| 2694× | 9.6s | (body real 1280) |
| 1871× | 4.3s | (body real 640) |
| 989× | 1.5s | (body real 320) |
| 493× | 447.0ms | (body real 160) |
| 8000× | 272.0ms | (pre true 80) |
| 378× | 181.0ms | (body real 80) |