


Bits error versus x
Results
if x < -0.024178796645617315 or 0.0282092826919728 < x Initial program 0.1
Taylor expanded around inf 0.1
if -0.024178796645617315 < x < 0.0282092826919728Initial program 62.8
Taylor expanded around 0 0.0
rmApplied add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019010
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 23.2s)Debug log
| 25.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.9b
Found 3 expressions with local error:
| 1.6b | (- x (tan x)) |
| 1.4b | (- x (sin 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 (tan x)) |
| 0.0ms | (- x (sin x)) |
| 455.0ms | (- x (tan x)) |
| 85.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 48.0ms | (- x (sin x)) |
| 213.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 208.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))))) |
| 191.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))))) |
| 117.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 52.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 13.3b | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 0.4b | (* 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 |
| 9.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)) |
| 34.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 27.0ms | (* 27/2800 (pow x 4)) |
| 19.0ms | (* 9/40 (pow x 2)) |
| 117.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (* 27/2800 (pow x 4)) 1/2))) |
| 67.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 58.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)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 13.3b | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 0.6b | (log (exp (* 27/2800 (pow x 4)))) |
| 0.4b | (* 9/40 (pow x 2)) |
| 0.1b | (* 27/2800 (pow x 4)) |
| 7× | add-cube-cbrt |
| 7× | associate-*r* |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 5× | pow1 |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | log-prod |
| 2× | *-commutative |
| 2× | log-pow |
| 1× | unpow2 |
| 1× | associate--r+ |
| 1× | flip-- |
| 1× | rem-log-exp |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | exp-prod |
| 13.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 3.0ms | (log (exp (* 27/2800 (pow x 4)))) |
| 2.0ms | (* 9/40 (pow x 2)) |
| 2.0ms | (* 27/2800 (pow x 4)) |
| 34.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 26.0ms | (log (exp (* 27/2800 (pow x 4)))) |
| 19.0ms | (* 27/2800 (pow x 4)) |
| 17.0ms | (* 9/40 (pow x 2)) |
| 105.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (log (exp (* 27/2800 (pow x 4)))) 1/2))) |
| 58.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 57.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 49.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 5.0ms | (log (* (cbrt (exp (* 27/2800 (pow x 4)))) (cbrt (exp (* 27/2800 (pow x 4)))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 13.3b | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 13.3b | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 13.3b | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 0.6b | (log (exp (* 27/2800 (pow x 4)))) |
| 10× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | pow1 |
| 5× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate--r+ |
| 3× | flip-- |
| 3× | diff-log |
| 3× | flip3-- |
| 3× | sub-neg |
| 3× | log-prod |
| 2× | log-pow |
| 1× | rem-log-exp |
| 1× | exp-prod |
| 14.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 12.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 11.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 3.0ms | (log (exp (* 27/2800 (pow x 4)))) |
| 31.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 26.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 23.0ms | (log (exp (* 27/2800 (pow x 4)))) |
| 20.0ms | (- (* 9/40 (pow x 2)) (+ (log (exp (* 27/2800 (pow x 4)))) 1/2)) |
| 111.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (log (exp (* 27/2800 (pow x 4)))) 1/2))) |
| 99.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (log (exp (* 27/2800 (pow x 4)))) 1/2))) |
| 99.0ms | (/ (exp (* 9/40 (pow x 2))) (exp (+ (log (exp (* 27/2800 (pow x 4)))) 1/2))) |
| 81.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 77.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 30.9b