


Bits error versus F



Bits error versus B



Bits error versus x
Results
if F < -1.7288022267860176e+23Initial program 25.6
Simplified25.6
rmApplied associate-*r/20.2
rmApplied clear-num20.3
rmApplied associate-/r/20.2
Taylor expanded around -inf 0.2
if -1.7288022267860176e+23 < F < 9811.311554800664Initial program 0.4
Simplified0.3
rmApplied add-sqr-sqrt0.4
Applied unpow-prod-down0.4
if 9811.311554800664 < F Initial program 25.5
Simplified25.4
rmApplied associate-*r/19.7
Taylor expanded around inf 0.1
Final simplification0.3
herbie shell --seed 2019007
(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: 30.1s)Debug log
1 calls. Slowest were:
| 137.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.6b
Found 4 expressions with local error:
| 19.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 7.2b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 0.2b | (/ x (tan B)) |
| 0.1b | (/ F (sin B)) |
4 calls. Slowest were:
| 10.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 10.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.0ms | (/ x (tan B)) |
4 calls. Slowest were:
| 134.0ms | (/ x (tan B)) |
| 117.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 81.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 62.0ms | (/ F (sin B)) |
38 calls. Slowest were:
| 234.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 199.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 159.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)))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 19.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.5b | (/ (* (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 (tan B)) |
4 calls. Slowest were:
| 20.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 14.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 8.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
4 calls. Slowest were:
| 124.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 107.0ms | (/ x (tan B)) |
| 55.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 39.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
38 calls. Slowest were:
| 572.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))) |
| 231.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
| 213.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 19.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.5b | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 0.3b | (/ 1 (/ (tan B) x)) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
4 calls. Slowest were:
| 9.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 9.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:
| 131.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 92.0ms | (/ 1 (/ (tan B) x)) |
| 62.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 62.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
39 calls. Slowest were:
| 541.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))) |
| 264.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 254.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 19.7b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.5b | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 0.3b | (* (/ 1 (tan B)) x) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
4 calls. Slowest were:
| 20.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 17.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 7.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
4 calls. Slowest were:
| 127.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 87.0ms | (* (/ 1 (tan B)) x) |
| 62.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 57.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
38 calls. Slowest were:
| 587.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))) |
| 240.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 223.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.0b
98% (0.2b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 10.8b