


Bits error versus F



Bits error versus B



Bits error versus x
Initial program 13.5
Initial simplification13.4
rmApplied div-inv13.4
Taylor expanded around -inf 13.4
Simplified13.4
Final simplification13.4
herbie shell --seed 2018365 +o rules:numerics
(FPCore (F B x)
:name "VandenBroeck and Keller, Equation (23)"
(+ (- (* x (/ 1 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))))))
Time bar (total: 20.1s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 15.3b
Found 4 expressions with local error:
| 19.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.6b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.2b | (/ (- x) (tan B)) |
| 0.1b | (/ F (sin B)) |
4 calls. Slowest were:
| 7.0ms | (/ (- x) (tan B)) |
| 5.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 1.0ms | (/ F (sin B)) |
4 calls. Slowest were:
| 235.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 232.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 128.0ms | (/ (- x) (tan B)) |
| 63.0ms | (/ F (sin B)) |
54 calls. Slowest were:
| 311.0ms | (- (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* x (sin B)))))) |
| 306.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 240.0ms | (- (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (* x (sin B)))))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 14.7b
Found 4 expressions with local error:
| 19.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.6b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 0.2b | (* F (/ 1 (sin B))) |
| 0.2b | (/ (- x) (tan B)) |
4 calls. Slowest were:
| 6.0ms | (/ (- x) (tan B)) |
| 5.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 2.0ms | (* F (/ 1 (sin B))) |
4 calls. Slowest were:
| 260.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 216.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 152.0ms | (/ (- x) (tan B)) |
| 69.0ms | (* F (/ 1 (sin B))) |
57 calls. Slowest were:
| 329.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 260.0ms | (- (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (* x (sin B)))))) |
| 251.0ms | (- (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* x (sin B)))))) |
14 alts after pruning (14 fresh and 0 done)
Merged error: 14.7b
Found 4 expressions with local error:
| 19.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.6b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (* (cos B) (- x)) (sin B))) |
| 0.2b | (* F (/ 1 (sin B))) |
| 0.2b | (/ (* (cos B) (- x)) (sin B)) |
4 calls. Slowest were:
| 8.0ms | (/ (* (cos B) (- x)) (sin B)) |
| 1.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 1.0ms | (* F (/ 1 (sin B))) |
4 calls. Slowest were:
| 214.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (* (cos B) (- x)) (sin B))) |
| 195.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 115.0ms | (/ (* (cos B) (- x)) (sin B)) |
| 87.0ms | (* F (/ 1 (sin B))) |
38 calls. Slowest were:
| 223.0ms | (- (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* x (sin B)))))) |
| 216.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 200.0ms | (- (+ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (* 3/8 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (pow x 2)))) (* 1/2 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) x))) |
14 alts after pruning (13 fresh and 1 done)
Merged error: 14.7b
Found 4 expressions with local error:
| 19.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.6b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (* (/ (- x) (sin B)) (cos B))) |
| 0.2b | (* F (/ 1 (sin B))) |
| 0.2b | (* (/ (- x) (sin B)) (cos B)) |
4 calls. Slowest were:
| 13.0ms | (* (/ (- x) (sin B)) (cos B)) |
| 2.0ms | (* F (/ 1 (sin B))) |
| 1.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
4 calls. Slowest were:
| 237.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (* (/ (- x) (sin B)) (cos B))) |
| 200.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 111.0ms | (* (/ (- x) (sin B)) (cos B)) |
| 63.0ms | (* F (/ 1 (sin B))) |
48 calls. Slowest were:
| 413.0ms | (* (* (* (/ (- x) (sin B)) (/ (- x) (sin B))) (/ (- x) (sin B))) (* (* (cos B) (cos B)) (cos B))) |
| 343.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 275.0ms | (- (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (* x (sin B)))))) |
13 alts after pruning (11 fresh and 2 done)
Merged error: 14.7b
0% (0.5b remaining)
Error of 13.4b against oracle of 12.9b and baseline of 13.4b