



Bits error versus x




Bits error versus eps
| Original | 36.6 |
|---|---|
| Target | 15.1 |
| Herbie | 0.6 |
Initial program 36.6
Initial simplification36.6
rmApplied tan-sum21.4
rmApplied flip--21.4
Applied associate-/r/21.4
Applied fma-neg21.4
Simplified21.4
Taylor expanded around inf 21.6
Simplified0.6
Final simplification0.6
herbie shell --seed 2018365 +o rules:numerics
(FPCore (x eps)
:name "2tan (problem 3.3.2)"
:herbie-target
(/ (sin eps) (* (cos x) (cos (+ x eps))))
(- (tan (+ x eps)) (tan x)))
Time bar (total: 34.1s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 38.8b
Found 2 expressions with local error:
| 3.2b | (tan (+ eps x)) |
| 1.4b | (- (tan (+ eps x)) (tan x)) |
2 calls. Slowest were:
| 13.0ms | (- (tan (+ eps x)) (tan x)) |
| 3.0ms | (tan (+ eps x)) |
2 calls. Slowest were:
| 109.0ms | (- (tan (+ eps x)) (tan x)) |
| 86.0ms | (tan (+ eps x)) |
35 calls. Slowest were:
| 233.0ms | (- (* (+ (tan eps) (tan x)) (cos x)) (* (- 1 (* (tan eps) (tan x))) (sin x))) |
| 161.0ms | (+ (* x (pow eps 2)) (+ (* 1/3 (pow eps 3)) eps)) |
| 136.0ms | (* (- 1 (* (tan eps) (tan x))) (cos x)) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 13.7b
Found 4 expressions with local error:
| 4.0b | (- (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) (tan x)) |
| 0.2b | (* (tan eps) (tan x)) |
| 0.1b | (+ (tan eps) (tan x)) |
| 0.1b | (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) |
4 calls. Slowest were:
| 41.0ms | (- (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) (tan x)) |
| 20.0ms | (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) |
| 4.0ms | (* (tan eps) (tan x)) |
4 calls. Slowest were:
| 405.0ms | (- (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) (tan x)) |
| 274.0ms | (/ (+ (tan eps) (tan x)) (- 1 (* (tan eps) (tan x)))) |
| 104.0ms | (+ (tan eps) (tan x)) |
| 100.0ms | (* (tan eps) (tan x)) |
199 calls. Slowest were:
| 550.0ms | (fma (/ 1 (* (cbrt (- 1 (* (tan eps) (tan x)))) (cbrt (- 1 (* (tan eps) (tan x)))))) (/ (+ (tan eps) (tan x)) (cbrt (- 1 (* (tan eps) (tan x))))) (- (* (tan x) 1))) |
| 534.0ms | (fma (/ 1 (* (cbrt (- 1 (* (tan eps) (tan x)))) (cbrt (- 1 (* (tan eps) (tan x)))))) (/ (+ (tan eps) (tan x)) (cbrt (- 1 (* (tan eps) (tan x))))) (- (* (tan x) 1))) |
| 525.0ms | (fma (/ 1 (* (cbrt (- 1 (* (tan eps) (tan x)))) (cbrt (- 1 (* (tan eps) (tan x)))))) (/ (+ (tan eps) (tan x)) (cbrt (- 1 (* (tan eps) (tan x))))) (- (* (sqrt (tan x)) (sqrt (tan x))))) |
17 alts after pruning (17 fresh and 0 done)
Merged error: 13.5b
Found 4 expressions with local error:
| 4.0b | (fma (/ (+ (tan eps) (tan x)) (- (pow 1 3) (pow (* (tan eps) (tan x)) 3))) (+ (* 1 1) (+ (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) (* 1 (* (tan eps) (tan x))))) (- (tan x))) |
| 0.3b | (pow (* (tan eps) (tan x)) 3) |
| 0.3b | (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) |
| 0.2b | (* (tan eps) (tan x)) |
4 calls. Slowest were:
| 16.0ms | (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) |
| 4.0ms | (* (tan eps) (tan x)) |
| 3.0ms | (pow (* (tan eps) (tan x)) 3) |
4 calls. Slowest were:
| 837.0ms | (fma (/ (+ (tan eps) (tan x)) (- (pow 1 3) (pow (* (tan eps) (tan x)) 3))) (+ (* 1 1) (+ (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) (* 1 (* (tan eps) (tan x))))) (- (tan x))) |
| 126.0ms | (pow (* (tan eps) (tan x)) 3) |
| 112.0ms | (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) |
| 101.0ms | (* (tan eps) (tan x)) |
83 calls. Slowest were:
| 868.0ms | (* (* (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) (* (tan eps) (tan x))) (* (* (* (tan eps) (tan eps)) (tan eps)) (* (* (tan x) (tan x)) (tan x)))) |
| 545.0ms | (* (* (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) (* (tan eps) (tan x))) (* (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) (* (tan eps) (tan x)))) |
| 493.0ms | (* (* (* (* (tan eps) (tan eps)) (tan eps)) (* (* (tan x) (tan x)) (tan x))) (* (* (* (tan eps) (tan x)) (* (tan eps) (tan x))) (* (tan eps) (tan x)))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 13.5b
Found 4 expressions with local error:
| 4.0b | (fma (/ (+ (tan eps) (tan x)) (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (+ 1 (* (tan eps) (tan x))) (- (tan x))) |
| 0.3b | (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) |
| 0.2b | (* (tan x) (tan eps)) |
| 0.2b | (* (tan x) (tan eps)) |
4 calls. Slowest were:
| 22.0ms | (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) |
| 4.0ms | (* (tan x) (tan eps)) |
| 4.0ms | (* (tan x) (tan eps)) |
4 calls. Slowest were:
| 479.0ms | (fma (/ (+ (tan eps) (tan x)) (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (+ 1 (* (tan eps) (tan x))) (- (tan x))) |
| 93.0ms | (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) |
| 82.0ms | (* (tan x) (tan eps)) |
| 80.0ms | (* (tan x) (tan eps)) |
84 calls. Slowest were:
| 454.0ms | (* (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan eps) (tan eps)) (tan eps))) (* (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) (* (tan x) (tan eps)))) |
| 445.0ms | (* (* (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) (* (tan x) (tan eps))) (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan eps) (tan eps)) (tan eps)))) |
| 410.0ms | (* (* (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) (* (tan x) (tan eps))) (* (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) (* (tan x) (tan eps)))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.3b
0% (0.3b remaining)
Error of 0.6b against oracle of 0.3b and baseline of 0.6b