


Bits error versus F



Bits error versus B



Bits error versus x
if F < -3.708582369031604e+154 or 2.0342863373936442e+151 < F Initial program 40.3
Simplified40.3
rmApplied add-sqr-sqrt40.3
Applied unpow-prod-down40.3
rmApplied pow-prod-up40.3
Simplified40.3
Taylor expanded around inf 35.4
Simplified35.4
if -3.708582369031604e+154 < F < 2.0342863373936442e+151Initial program 2.5
Simplified2.4
rmApplied add-sqr-sqrt2.4
Applied unpow-prod-down2.5
Final simplification12.1
herbie shell --seed 2019005 +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: 31.6s)Debug log
1 calls. Slowest were:
| 179.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: 13.9b
Found 4 expressions with local error:
| 16.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.8b | (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:
| 252.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 209.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 165.0ms | (/ (- x) (tan B)) |
| 67.0ms | (/ F (sin B)) |
54 calls. Slowest were:
| 262.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)))))) |
| 246.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 238.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))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 13.4b
Found 4 expressions with local error:
| 16.2b | (sqrt (fma 2 x (fma F F 2))) |
| 16.2b | (sqrt (fma 2 x (fma F F 2))) |
| 6.8b | (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:
| 15.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 2.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 2.0ms | (sqrt (fma 2 x (fma F F 2))) |
4 calls. Slowest were:
| 184.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))) |
| 85.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 53.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 52.0ms | (sqrt (fma 2 x (fma F F 2))) |
50 calls. Slowest were:
| 220.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 183.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 183.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
17 alts after pruning (16 fresh and 1 done)
Merged error: 10.9b
Found 4 expressions with local error:
| 16.2b | (sqrt (fma 2 x (fma F F 2))) |
| 6.8b | (fma (pow (sqrt (fma 2 x (fma F F 2))) -1) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.3b | (pow (sqrt (fma 2 x (fma F F 2))) -1) |
| 0.1b | (/ (- x) (tan B)) |
4 calls. Slowest were:
| 3.0ms | (/ (- x) (tan B)) |
| 1.0ms | (pow (sqrt (fma 2 x (fma F F 2))) -1) |
| 1.0ms | (sqrt (fma 2 x (fma F F 2))) |
4 calls. Slowest were:
| 254.0ms | (fma (pow (sqrt (fma 2 x (fma F F 2))) -1) (/ F (sin B)) (/ (- x) (tan B))) |
| 101.0ms | (/ (- x) (tan B)) |
| 65.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 56.0ms | (pow (sqrt (fma 2 x (fma F F 2))) -1) |
59 calls. Slowest were:
| 223.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 206.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 184.0ms | (/ (* (* (- x) (- x)) (- x)) (* (* (tan B) (tan B)) (tan B))) |
16 alts after pruning (15 fresh and 1 done)
Merged error: 10.9b
Found 4 expressions with local error:
| 16.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.8b | (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.1b | (/ (tan B) x) |
4 calls. Slowest were:
| 2.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:
| 224.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ -1 (/ (tan B) x))) |
| 208.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 103.0ms | (/ -1 (/ (tan B) x)) |
| 51.0ms | (/ (tan B) x) |
24 calls. Slowest were:
| 252.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)))))) |
| 239.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)))))) |
| 223.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
16 alts after pruning (15 fresh and 1 done)
Merged error: 10.9b
66.5% (0.7b remaining)
Error of 12.1b against oracle of 11.4b and baseline of 13.5b