


Bits error versus F



Bits error versus B



Bits error versus x
Results
if F < -6.26640685551953e+29Initial program 26.6
Initial simplification26.6
rmApplied div-inv26.6
Applied associate-*r*20.8
Taylor expanded around -inf 0.1
if -6.26640685551953e+29 < F < 7.689949620103517e+16Initial program 0.4
Initial simplification0.3
Taylor expanded around inf 0.4
if 7.689949620103517e+16 < F Initial program 26.3
Initial simplification26.2
rmApplied div-inv26.2
Applied associate-*r*21.1
Taylor expanded around inf 0.1
Final simplification0.3
herbie shell --seed 2018362
(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: 17.7s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 15.3b
Found 4 expressions with local error:
| 18.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 7.4b | (* (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:
| 18.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 7.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.0ms | (/ x (tan B)) |
4 calls. Slowest were:
| 164.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 109.0ms | (/ x (tan B)) |
| 95.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 53.0ms | (/ F (sin B)) |
38 calls. Slowest were:
| 242.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 239.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)))) |
| 196.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 18.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.2b | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 0.1b | (/ x (tan B)) |
4 calls. Slowest were:
| 27.0ms | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 11.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 4.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
4 calls. Slowest were:
| 157.0ms | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 130.0ms | (/ x (tan B)) |
| 64.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 61.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
37 calls. Slowest were:
| 374.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)) (* (* (/ 1 (sin B)) (/ 1 (sin B))) (/ 1 (sin B)))) |
| 262.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 230.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 18.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.2b | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 0.2b | (* (/ x (sin B)) (cos B)) |
4 calls. Slowest were:
| 20.0ms | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 10.0ms | (* (/ x (sin B)) (cos B)) |
| 9.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
4 calls. Slowest were:
| 144.0ms | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 123.0ms | (* (/ x (sin B)) (cos B)) |
| 61.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 43.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
42 calls. Slowest were:
| 309.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)) (* (* (/ 1 (sin B)) (/ 1 (sin B))) (/ 1 (sin B)))) |
| 248.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 225.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 18.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.3b | (/ 1 (/ (tan B) x)) |
| 0.2b | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
4 calls. Slowest were:
| 20.0ms | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 18.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 8.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
4 calls. Slowest were:
| 156.0ms | (* (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (/ 1 (sin B))) |
| 112.0ms | (/ 1 (/ (tan B) x)) |
| 51.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 42.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
38 calls. Slowest were:
| 367.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)) (* (* (/ 1 (sin B)) (/ 1 (sin B))) (/ 1 (sin B)))) |
| 261.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 257.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 0.0b
98.1% (0.2b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 10.9b