


Bits error versus F



Bits error versus B



Bits error versus x
Results
if F < -31312194.61797758Initial program 25.3
Simplified25.2
rmApplied associate-*r/19.1
Taylor expanded around -inf 0.1
if -31312194.61797758 < F < 1739.3678203466748Initial program 0.4
Simplified0.3
rmApplied associate-*r/0.3
rmApplied add-log-exp0.4
if 1739.3678203466748 < F Initial program 24.5
Simplified24.5
rmApplied associate-*r/19.4
Taylor expanded around inf 0.2
Final simplification0.3
herbie shell --seed 2019004
(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: 29.5s)Debug log
1 calls. Slowest were:
| 98.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 (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 8.0b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 0.1b | (/ x (tan B)) |
| 0.1b | (/ F (sin B)) |
4 calls. Slowest were:
| 11.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 5.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.0ms | (/ x (tan B)) |
4 calls. Slowest were:
| 131.0ms | (/ x (tan B)) |
| 110.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 68.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 53.0ms | (/ F (sin B)) |
38 calls. Slowest were:
| 220.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 210.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 158.0ms | (* (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2)) (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2)) (* (* (/ F (sin B)) (/ F (sin B))) (/ F (sin B)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 20.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.6b | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.1b | (/ x (tan B)) |
4 calls. Slowest were:
| 18.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 9.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 8.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
4 calls. Slowest were:
| 133.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 127.0ms | (/ x (tan B)) |
| 69.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 63.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
38 calls. Slowest were:
| 545.0ms | (/ (* (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (* (* (sin B) (sin B)) (sin B))) |
| 228.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 209.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 20.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.6b | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.2b | (* (/ x (sin B)) (cos B)) |
4 calls. Slowest were:
| 9.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 9.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 5.0ms | (* (/ x (sin B)) (cos B)) |
4 calls. Slowest were:
| 147.0ms | (* (/ x (sin B)) (cos B)) |
| 125.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 84.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 57.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
43 calls. Slowest were:
| 530.0ms | (/ (* (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (* (* (sin B) (sin B)) (sin B))) |
| 238.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
| 221.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 20.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.6b | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.3b | (/ 1 (/ (tan B) x)) |
4 calls. Slowest were:
| 21.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 13.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 4.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
4 calls. Slowest were:
| 154.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 115.0ms | (/ 1 (/ (tan B) x)) |
| 52.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 51.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
39 calls. Slowest were:
| 562.0ms | (/ (* (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (* (* (sin B) (sin B)) (sin B))) |
| 229.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 218.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
9 alts after pruning (7 fresh and 2 done)
Merged error: 0.0b
97.9% (0.2b remaining)
Error of 0.3b against oracle of 0.1b and baseline of 10.6b