


Bits error versus x
Results
if x < -0.028234102419464398 or 0.029092505273595363 < x Initial program 0.1
if -0.028234102419464398 < x < 0.029092505273595363Initial program 62.8
Taylor expanded around 0 0.0
rmApplied associate--r+0.0
rmApplied add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019018
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 23.0s)Debug log
| 242.0ms | 49× | body | 2560 | valid |
| 184.0ms | 74× | body | 1280 | valid |
| 60.0ms | 54× | body | 640 | valid |
| 36.0ms | 44× | body | 320 | valid |
| 9.0ms | 18× | body | 80 | valid |
| 8.0ms | 17× | body | 160 | valid |
| 454.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 29.3b
Found 3 expressions with local error:
| 0.9b | (- x (sin x)) |
| 0.9b | (- 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 |
| 3.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 2.0ms | (- x (sin x)) |
| 0.0ms | (- x (tan x)) |
| 118.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 64.0ms | (- x (tan x)) |
| 47.0ms | (- x (sin x)) |
| 195.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 181.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))))) |
| 173.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))))) |
| 158.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 59.0ms | (- (+ (* 1/6 (pow x 3)) (* 1/5040 (pow x 7))) (* 1/120 (pow x 5))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 13.3b | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 0.3b | (* 27/2800 (pow x 4)) |
| 0.2b | (* 9/40 (pow x 2)) |
| 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 |
| 8.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 2.0ms | (* 27/2800 (pow x 4)) |
| 2.0ms | (* 9/40 (pow x 2)) |
| 39.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 29.0ms | (* 27/2800 (pow x 4)) |
| 21.0ms | (* 9/40 (pow x 2)) |
| 97.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (* 27/2800 (pow x 4)) 1/2))) |
| 50.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 48.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 41.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 7.0ms | (* 9/40 (pow x 2)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 13.3b | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 0.3b | (* 27/2800 (pow x 4)) |
| 0.2b | (* 9/40 (pow x 2)) |
| 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× | flip-- |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 3.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 1.0ms | (* 9/40 (pow x 2)) |
| 1.0ms | (* 27/2800 (pow x 4)) |
| 50.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 17.0ms | (* 9/40 (pow x 2)) |
| 15.0ms | (* 27/2800 (pow x 4)) |
| 55.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (* 27/2800 (pow x 4)))) |
| 11.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 11.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 11.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 4.0ms | (* 9/40 (pow x 2)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 13.3b | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 0.9b | (log (exp (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))))) |
| 0.3b | (* 27/2800 (pow x 4)) |
| 0.2b | (* 9/40 (pow x 2)) |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 7× | associate-*r* |
| 6× | add-log-exp |
| 5× | log-prod |
| 5× | pow1 |
| 4× | log-pow |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | exp-prod |
| 2× | *-commutative |
| 2× | exp-sum |
| 2× | sub-neg |
| 1× | unpow2 |
| 1× | flip-- |
| 1× | rem-log-exp |
| 1× | diff-log |
| 1× | exp-diff |
| 1× | flip3-- |
| 1× | log-div |
| 5.0ms | (log (exp (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))))) |
| 3.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 1.0ms | (* 27/2800 (pow x 4)) |
| 1.0ms | (* 9/40 (pow x 2)) |
| 82.0ms | (log (exp (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))))) |
| 61.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 26.0ms | (* 27/2800 (pow x 4)) |
| 19.0ms | (* 9/40 (pow x 2)) |
| 65.0ms | (log (sqrt (exp (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4)))))) |
| 45.0ms | (log (* (cbrt (exp (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))))) (cbrt (exp (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))))))) |
| 35.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (* 27/2800 (pow x 4)))) |
| 25.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
| 24.0ms | (- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.8b
| 7.3s | 1696× | body | 2560 | valid |
| 5.4s | 2713× | body | 1280 | valid |
| 2.7s | 1824× | body | 640 | valid |
| 1.1s | 906× | body | 320 | valid |
| 227.0ms | 489× | body | 160 | valid |
| 92.0ms | 372× | body | 80 | valid |