


Bits error versus F



Bits error versus B



Bits error versus x
Initial program 13.7
Initial simplification13.6
rmApplied clear-num13.7
rmApplied div-inv13.7
Applied associate-/r*13.7
Final simplification13.7
herbie shell --seed 2018362 +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: 21.0s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 15.3b
Found 4 expressions with local error:
| 18.7b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 7.3b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.1b | (/ (- x) (tan B)) |
| 0.1b | (/ F (sin B)) |
4 calls. Slowest were:
| 6.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:
| 267.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 260.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 122.0ms | (/ (- x) (tan B)) |
| 82.0ms | (/ F (sin B)) |
54 calls. Slowest were:
| 273.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)))))) |
| 272.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))) |
| 257.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)))))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 14.8b
Found 4 expressions with local error:
| 18.7b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 7.3b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 0.3b | (* F (/ 1 (sin B))) |
| 0.1b | (/ (- x) (tan B)) |
4 calls. Slowest were:
| 6.0ms | (/ (- x) (tan B)) |
| 2.0ms | (* F (/ 1 (sin B))) |
| 2.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
4 calls. Slowest were:
| 224.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 182.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 125.0ms | (/ (- x) (tan B)) |
| 61.0ms | (* F (/ 1 (sin B))) |
57 calls. Slowest were:
| 311.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 271.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)))))) |
| 253.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)))))) |
14 alts after pruning (14 fresh and 0 done)
Merged error: 14.8b
Found 4 expressions with local error:
| 18.7b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 7.3b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ 1 (/ (sin B) F)) (/ (- x) (tan B))) |
| 0.2b | (/ 1 (/ (sin B) F)) |
| 0.2b | (/ (sin B) F) |
4 calls. Slowest were:
| 2.0ms | (/ (sin B) F) |
| 1.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 1.0ms | (/ 1 (/ (sin B) F)) |
4 calls. Slowest were:
| 223.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 204.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ 1 (/ (sin B) F)) (/ (- x) (tan B))) |
| 45.0ms | (/ 1 (/ (sin B) F)) |
| 32.0ms | (/ (sin B) F) |
24 calls. Slowest were:
| 291.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 275.0ms | (- (+ (/ B F) (* 1/120 (/ (pow B 5) F))) (* 1/6 (/ (pow B 3) F))) |
| 257.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.8b
Found 4 expressions with local error:
| 18.7b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 7.3b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ (/ 1 (sin B)) (/ 1 F)) (/ (- x) (tan B))) |
| 0.3b | (/ (/ 1 (sin B)) (/ 1 F)) |
| 0.1b | (/ (- x) (tan B)) |
4 calls. Slowest were:
| 7.0ms | (/ (/ 1 (sin B)) (/ 1 F)) |
| 6.0ms | (/ (- x) (tan B)) |
| 2.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
4 calls. Slowest were:
| 571.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ (/ 1 (sin B)) (/ 1 F)) (/ (- x) (tan B))) |
| 206.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 144.0ms | (/ (- x) (tan B)) |
| 68.0ms | (/ (/ 1 (sin B)) (/ 1 F)) |
92 calls. Slowest were:
| 1.2s | (/ (* (* (/ 1 (sin B)) (/ 1 (sin B))) (/ 1 (sin B))) (* (* (/ 1 F) (/ 1 F)) (/ 1 F))) |
| 300.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)))))) |
| 255.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 (13 fresh and 1 done)
Merged error: 14.8b
0% (0.5b remaining)
Error of 13.7b against oracle of 13.1b and baseline of 13.7b