


Bits error versus F



Bits error versus B



Bits error versus x
Results
if F < -1.9920120047445207e+28Initial program 28.0
Simplified28.0
rmApplied associate-*r/22.1
Taylor expanded around -inf 0.2
if -1.9920120047445207e+28 < F < 0.028712724924549283Initial program 0.4
Simplified0.3
rmApplied associate-*r/0.3
rmApplied associate-/l*0.3
if 0.028712724924549283 < F Initial program 24.7
Simplified24.6
rmApplied associate-*r/19.5
Taylor expanded around inf 0.5
Final simplification0.3
herbie shell --seed 2019010
(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.3s)Debug log
| 147.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:
| 17.0b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 6.5b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 0.2b | (/ x (tan B)) |
| 0.1b | (/ F (sin B)) |
| 10× | add-cube-cbrt |
| 10× | add-exp-log |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 6× | associate-*l* |
| 6× | add-cbrt-cube |
| 6× | unpow-prod-down |
| 6× | associate-/r* |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | associate-*r* |
| 3× | div-inv |
| 3× | prod-exp |
| 2× | pow-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | pow-to-exp |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-/r/ |
| 1× | associate-*r/ |
| 1× | tan-quot |
| 1× | pow-pow |
| 20.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 10.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 1.0ms | (/ x (tan B)) |
| 1.0ms | (/ F (sin B)) |
| 141.0ms | (/ x (tan B)) |
| 119.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 94.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 53.0ms | (/ F (sin B)) |
| 238.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 186.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)))) |
| 170.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 84.0ms | (+ (* (log (+ (+ 2 (* F F)) (* 2 x))) -1/2) (log (/ F (sin B)))) |
| 48.0ms | (+ (* (log (+ (+ 2 (* F F)) (* 2 x))) -1/2) (log (/ F (sin B)))) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.0b | (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) (sin B)) |
| 0.2b | (/ x (tan B)) |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 7× | add-exp-log |
| 6× | associate-*l* |
| 6× | add-cbrt-cube |
| 6× | unpow-prod-down |
| 6× | associate-/r* |
| 5× | pow1 |
| 4× | add-log-exp |
| 3× | times-frac |
| 2× | div-inv |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | associate-/l* |
| 1× | *-commutative |
| 1× | associate-/r/ |
| 1× | tan-quot |
| 1× | pow-exp |
| 1× | div-exp |
| 1× | pow-pow |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 19.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 11.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 4.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 1.0ms | (/ x (tan B)) |
| 131.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 126.0ms | (/ x (tan B)) |
| 64.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 56.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 593.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))) |
| 281.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 195.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
| 178.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 75.0ms | (- (log (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (log (sin B))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.0b | (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) (sin B)) |
| 0.2b | (* (/ x (sin B)) (cos B)) |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 10× | associate-*l* |
| 9× | add-exp-log |
| 8× | add-cbrt-cube |
| 7× | pow1 |
| 6× | unpow-prod-down |
| 4× | add-log-exp |
| 3× | associate-*r* |
| 3× | times-frac |
| 3× | associate-/r* |
| 2× | div-inv |
| 2× | *-commutative |
| 1× | associate-/l* |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | pow-pow |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 12.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 9.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 4.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 4.0ms | (* (/ x (sin B)) (cos B)) |
| 141.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 120.0ms | (* (/ x (sin B)) (cos B)) |
| 59.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 38.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 461.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)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 202.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
| 158.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 141.0ms | (* (* (* (/ x (sin B)) (/ x (sin B))) (/ x (sin B))) (* (* (cos B) (cos B)) (cos B))) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.0b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 0.3b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 0.2b | (/ 1 (/ (tan B) x)) |
| 0.2b | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 8× | add-exp-log |
| 7× | associate-/r* |
| 6× | associate-*l* |
| 6× | add-cbrt-cube |
| 6× | unpow-prod-down |
| 6× | pow1 |
| 4× | add-log-exp |
| 3× | div-inv |
| 3× | times-frac |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | inv-pow |
| 1× | associate-/l* |
| 1× | pow-flip |
| 1× | *-commutative |
| 1× | associate-/r/ |
| 1× | pow-exp |
| 1× | div-exp |
| 1× | pow-pow |
| 1× | rec-exp |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 15.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 9.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 8.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 1.0ms | (/ 1 (/ (tan B) x)) |
| 170.0ms | (/ (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) (sin B)) |
| 84.0ms | (/ 1 (/ (tan B) x)) |
| 64.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 56.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F) |
| 509.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))) |
| 274.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))))) |
| 204.0ms | (- (* F (sqrt 1/2)) (+ (* 1/4 (/ (* x F) (sqrt 1/2))) (* 1/2 (* (pow F 3) (sqrt 1/8))))) |
| 57.0ms | (- (log (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) F)) (log (sin B))) |
13 alts after pruning (11 fresh and 2 done)
Merged error: 0.0b
97.5% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 11.3b