


Bits error versus x
if x < -1.5592990590494797Initial program 0.0
rmApplied div-sub0.0
rmApplied add-sqr-sqrt0.1
Applied fma-neg0.1
if -1.5592990590494797 < x < 0.028176034411070774Initial program 62.4
rmApplied div-sub62.3
Taylor expanded around 0 0.1
Simplified0.1
if 0.028176034411070774 < x Initial program 0.0
rmApplied div-sub0.0
Final simplification0.1
herbie shell --seed 2019007 +o rules:numerics
(FPCore (x)
:name "sintan (problem 3.4.5)"
(/ (- x (sin x)) (- x (tan x))))
Time bar (total: 53.1s)Debug log
1 calls. Slowest were:
| 20.0ms | (/ (- x (sin x)) (- x (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 31.4b
Found 3 expressions with local error:
| 1.5b | (- x (sin x)) |
| 1.5b | (- x (tan x)) |
| 0.0b | (/ (- x (sin x)) (- x (tan x))) |
3 calls. Slowest were:
| 8.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 3.0ms | (- x (sin x)) |
| 1.0ms | (- x (tan x)) |
3 calls. Slowest were:
| 89.0ms | (/ (- x (sin x)) (- x (tan x))) |
| 77.0ms | (- x (tan x)) |
| 64.0ms | (- x (sin x)) |
39 calls. Slowest were:
| 269.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))))) |
| 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))))) |
| 184.0ms | (- (+ (* 1/3 (pow x 3)) (+ (* 2/15 (pow x 5)) (* 17/315 (pow x 7))))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.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))) |
4 calls. Slowest were:
| 15.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 7.0ms | (/ (sin x) (- x (tan x))) |
| 1.0ms | (- x (tan x)) |
4 calls. Slowest were:
| 281.0ms | (- (/ x (- x (tan x))) (/ (sin x) (- x (tan x)))) |
| 94.0ms | (/ (sin x) (- x (tan x))) |
| 83.0ms | (- x (tan x)) |
| 68.0ms | (- x (tan x)) |
239 calls. Slowest were:
| 747.0ms | (fma (/ x (- (pow x 3) (pow (tan x) 3))) (+ (* x x) (+ (* (tan x) (tan x)) (* x (tan x)))) (- (* (cbrt (/ (sin x) (- x (tan x)))) (* (cbrt (/ (sin x) (- x (tan x)))) (cbrt (/ (sin x) (- x (tan x)))))))) |
| 605.0ms | (fma (/ x (- (* x x) (* (tan x) (tan x)))) (+ x (tan x)) (- (* (/ (sin x) (- x (tan x))) 1))) |
| 533.0ms | (fma x (/ 1 (- x (tan x))) (- (* (/ (cbrt (sin x)) (- x (tan x))) (/ (* (cbrt (sin x)) (cbrt (sin x))) 1)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.5b | (fma -27/2800 (pow x 4) -1/2) |
| 0.2b | (* 9/40 x) |
| 0.0b | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
3 calls. Slowest were:
| 0.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)) |
3 calls. Slowest were:
| 46.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 32.0ms | (fma (* 9/40 x) x (fma -27/2800 (pow x 4) -1/2)) |
| 11.0ms | (* 9/40 x) |
9 calls. Slowest were:
| 87.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 66.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
| 54.0ms | (- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2)) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 5.9b | (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.5b | (fma -27/2800 (pow x 4) -1/2) |
| 0.5b | (fma -27/2800 (pow x 4) -1/2) |
| 0.5b | (fma -27/2800 (pow x 4) -1/2) |
4 calls. Slowest were:
| 10.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 | (fma -27/2800 (pow x 4) -1/2) |
| 0.0ms | (fma -27/2800 (pow x 4) -1/2) |
4 calls. Slowest were:
| 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))) |
| 53.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 52.0ms | (fma -27/2800 (pow x 4) -1/2) |
| 52.0ms | (fma -27/2800 (pow x 4) -1/2) |
13 calls. Slowest were:
| 58.0ms | (cbrt (* (fma -27/2800 (pow x 4) -1/2) (fma -27/2800 (pow x 4) -1/2))) |
| 20.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
| 18.0ms | (- (+ (* 27/2800 (pow x 4)) 1/2)) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
99.8% (0.0b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 31.0b