


Bits error versus x
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
Simplified0.0
Final simplification0.0
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 29.1s)Debug log
| 29.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× | log1p-expm1-u |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 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 |
| 4.0ms | (- x (tan x)) |
| 4.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 1.0ms | (- x (sin x)) |
| 476.0ms | (- x (tan x)) |
| 113.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 49.0ms | (- x (sin x)) |
| 251.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))))) |
| 250.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))))) |
| 199.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
| 179.0ms | (/ (* (* (- x (sin x)) (- x (sin x))) (- x (sin x))) (* (* (- x (tan x)) (- x (tan x))) (- x (tan x)))) |
| 109.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:
| 0.1b | (* 9/40 x) |
| 0.1b | (fma -27/2800 (pow x 4) -1/2) |
| 0.0b | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | *-un-lft-identity |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 3× | add-sqr-sqrt |
| 2× | fma-udef |
| 1× | *-commutative |
| 1.0ms | (* 9/40 x) |
| 0.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 0.0ms | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 60.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 32.0ms | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 13.0ms | (* 9/40 x) |
| 109.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 95.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 89.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 23.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
| 21.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 6.6b | (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))) |
| 0.1b | (* 9/40 x) |
| 0.1b | (fma -27/2800 (pow x 4) -1/2) |
| 0.1b | (fma -27/2800 (pow x 4) -1/2) |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 4× | add-sqr-sqrt |
| 2× | fma-udef |
| 1× | rem-cbrt-cube |
| 1× | *-commutative |
| 1× | pow3 |
| 1× | pow1/3 |
| 1× | cbrt-prod |
| 6.0ms | (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))) |
| 0.0ms | (* 9/40 x) |
| 0.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 0.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 50.0ms | (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))) |
| 34.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 33.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 7.0ms | (* 9/40 x) |
| 32.0ms | (cbrt (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2))) |
| 21.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
| 21.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
| 21.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
| 21.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.1b | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 15.1b | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 15.1b | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 6.6b | (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))) |
| 16× | cbrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 1× | rem-cbrt-cube |
| 1× | pow3 |
| 9.0ms | (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))) |
| 3.0ms | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 3.0ms | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 3.0ms | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 677.0ms | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 632.0ms | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 601.0ms | (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) |
| 57.0ms | (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))) |
| 460.0ms | (cbrt (sqrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))))) |
| 427.0ms | (cbrt (sqrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2))))) |
| 402.0ms | (cbrt (* (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))))) |
| 394.0ms | (cbrt (* (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))))) |
| 370.0ms | (cbrt (* (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))) (cbrt (cbrt (* (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2)) (fma -27/2800 (pow x 4) -1/2)))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.3b