


Bits error versus F



Bits error versus B



Bits error versus x
if F < -247587564.04612592Initial program 25.4
Taylor expanded around -inf 0.2
if -247587564.04612592 < F < 19780.345943679087Initial program 0.4
Simplified0.3
rmApplied add-sqr-sqrt0.3
Applied unpow-prod-down0.3
if 19780.345943679087 < F Initial program 24.6
Taylor expanded around inf 0.2
Final simplification0.3
herbie shell --seed 2019004 +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: 35.1s)Debug log
1 calls. Slowest were:
| 152.0ms | (+ (- (* x (/ 1 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 14.7b
Found 4 expressions with local error:
| 20.7b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 7.9b | (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:
| 284.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 221.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 111.0ms | (/ (- x) (tan B)) |
| 71.0ms | (/ F (sin B)) |
54 calls. Slowest were:
| 243.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)))))) |
| 242.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 224.0ms | (- (+ (* 3/8 (/ (exp (* -1/2 (- (log 2) (log (/ 1 x))))) (pow x 2))) (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* 1/2 (/ (exp (* -1/2 (- (log 2) (log (/ 1 x))))) x))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 14.2b
Found 4 expressions with local error:
| 20.7b | (sqrt (fma 2 x (fma F F 2))) |
| 20.7b | (sqrt (fma 2 x (fma F F 2))) |
| 7.9b | (fma (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.6b | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
4 calls. Slowest were:
| 7.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 1.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 1.0ms | (sqrt (fma 2 x (fma F F 2))) |
4 calls. Slowest were:
| 181.0ms | (fma (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (/ F (sin B)) (/ (- x) (tan B))) |
| 63.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 62.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 46.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
50 calls. Slowest were:
| 319.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 187.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 179.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
16 alts after pruning (15 fresh and 1 done)
Merged error: 12.5b
Found 4 expressions with local error:
| 20.7b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 7.9b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ -1 (/ (tan B) x))) |
| 0.3b | (/ -1 (/ (tan B) x)) |
| 0.2b | (/ (tan B) x) |
4 calls. Slowest were:
| 3.0ms | (/ (tan B) x) |
| 1.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 0.0ms | (/ -1 (/ (tan B) x)) |
4 calls. Slowest were:
| 198.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ -1 (/ (tan B) x))) |
| 185.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 88.0ms | (/ -1 (/ (tan B) x)) |
| 51.0ms | (/ (tan B) x) |
24 calls. Slowest were:
| 281.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) 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)))))) |
| 217.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)))))) |
16 alts after pruning (15 fresh and 1 done)
Merged error: 12.5b
Found 4 expressions with local error:
| 20.7b | (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))) |
| 8.0b | (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2)))) |
| 0.3b | (* x (/ 1 (tan B))) |
| 0.2b | (/ 1 (tan B)) |
4 calls. Slowest were:
| 52.0ms | (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2)))) |
| 15.0ms | (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))) |
| 2.0ms | (* x (/ 1 (tan B))) |
4 calls. Slowest were:
| 169.0ms | (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2)))) |
| 163.0ms | (* x (/ 1 (tan B))) |
| 80.0ms | (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))) |
| 47.0ms | (/ 1 (tan B)) |
63 calls. Slowest were:
| 417.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 222.0ms | (+ (log (/ F (sin B))) (* (log (+ (+ (* F F) 2) (* 2 x))) (- (/ 1 2)))) |
| 216.0ms | (* (* (* (/ F (sin B)) (/ F (sin B))) (/ F (sin B))) (* (* (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2)))) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.0b
97.9% (0.2b remaining)
Error of 0.3b against oracle of 0.1b and baseline of 10.6b