


Bits error versus F



Bits error versus B



Bits error versus x
Results
if F < -8049033631.802277Initial program 25.4
Simplified25.4
rmApplied add-sqr-sqrt25.4
Applied unpow-prod-down25.4
Taylor expanded around -inf 0.2
if -8049033631.802277 < F < 54697.97663712007Initial program 0.4
Simplified0.3
rmApplied add-sqr-sqrt0.3
Applied unpow-prod-down0.3
if 54697.97663712007 < F Initial program 24.0
Simplified23.9
rmApplied add-sqr-sqrt23.9
Applied unpow-prod-down24.0
Taylor expanded around inf 0.2
Final simplification0.2
herbie shell --seed 2019016
(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: 34.4s)Debug log
| 347× | (pre true 80) |
| 155× | (body real 80) |
| 62× | (body nan 80) |
| 54× | (body real 1280) |
| 39× | (body real 640) |
| 30× | (body real 320) |
| 7× | (body real 160) |
| 97.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: 12.8b
Found 4 expressions with local error:
| 17.2b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 4.8b | (* (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 |
| 21.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)) |
| 146.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 116.0ms | (/ x (tan B)) |
| 100.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 62.0ms | (/ F (sin B)) |
| 221.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 178.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 166.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)))) |
| 85.0ms | (+ (* (log (+ (+ 2 (* F F)) (* 2 x))) -1/2) (log (/ F (sin B)))) |
| 72.0ms | (+ (* (log (+ (+ 2 (* F F)) (* 2 x))) -1/2) (log (/ F (sin B)))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.2b | (sqrt (+ (+ 2 (* F F)) (* 2 x))) |
| 17.2b | (sqrt (+ (+ 2 (* F F)) (* 2 x))) |
| 4.8b | (* (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (/ F (sin B))) |
| 0.7b | (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) |
| 39× | add-exp-log |
| 28× | prod-exp |
| 15× | add-sqr-sqrt |
| 13× | add-cube-cbrt |
| 13× | associate-*r* |
| 13× | *-un-lft-identity |
| 12× | sqrt-prod |
| 12× | pow-exp |
| 12× | unpow-prod-down |
| 12× | pow-to-exp |
| 11× | add-cbrt-cube |
| 10× | associate-*l* |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | cbrt-unprod |
| 4× | sqrt-div |
| 2× | flip-+ |
| 2× | *-commutative |
| 2× | pow-prod-down |
| 2× | pow1/2 |
| 2× | flip3-+ |
| 2× | rem-sqrt-square |
| 1× | div-inv |
| 1× | pow-prod-up |
| 1× | associate-*r/ |
| 1× | pow2 |
| 39.0ms | (* (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (/ F (sin B))) |
| 36.0ms | (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) |
| 6.0ms | (sqrt (+ (+ 2 (* F F)) (* 2 x))) |
| 6.0ms | (sqrt (+ (+ 2 (* F F)) (* 2 x))) |
| 155.0ms | (* (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (/ F (sin B))) |
| 41.0ms | (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) |
| 32.0ms | (sqrt (+ (+ 2 (* F F)) (* 2 x))) |
| 28.0ms | (sqrt (+ (+ 2 (* F F)) (* 2 x))) |
| 676.0ms | (sqrt (+ (pow (+ 2 (* F F)) 3) (pow (* 2 x) 3))) |
| 613.0ms | (sqrt (+ (pow (+ 2 (* F F)) 3) (pow (* 2 x) 3))) |
| 413.0ms | (* (* (* (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (* (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2))) (* (* (/ F (sin B)) (/ F (sin B))) (/ F (sin B)))) |
| 354.0ms | (* (* (* (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2)) (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2))) (* (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2) (pow (sqrt (+ (+ 2 (* F F)) (* 2 x))) -1/2))) (* (* (/ F (sin B)) (/ F (sin B))) (/ F (sin B)))) |
| 198.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:
| 17.2b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 4.8b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 0.2b | (/ (* x (cos B)) (sin B)) |
| 0.1b | (* x (cos B)) |
| 12× | add-exp-log |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 8× | add-cbrt-cube |
| 7× | associate-*r* |
| 6× | associate-*l* |
| 6× | unpow-prod-down |
| 5× | pow1 |
| 4× | add-log-exp |
| 3× | prod-exp |
| 3× | times-frac |
| 3× | associate-/r* |
| 2× | div-inv |
| 2× | *-commutative |
| 2× | pow-exp |
| 2× | pow-to-exp |
| 1× | associate-/l* |
| 1× | cbrt-unprod |
| 1× | associate-*r/ |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | pow-pow |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 10.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 6.0ms | (/ (* x (cos B)) (sin B)) |
| 4.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 2.0ms | (* x (cos B)) |
| 142.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 128.0ms | (/ (* x (cos B)) (sin B)) |
| 69.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 31.0ms | (* x (cos B)) |
| 577.0ms | (/ (* (* (* x (cos B)) (* x (cos B))) (* x (cos B))) (* (* (sin B) (sin B)) (sin B))) |
| 284.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 207.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 134.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)))) |
| 74.0ms | (+ (* (log (+ (+ 2 (* F F)) (* 2 x))) -1/2) (log (/ F (sin B)))) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.2b | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 4.8b | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 0.3b | (* x (/ (cos B) (sin B))) |
| 0.1b | (/ (cos B) (sin B)) |
| 23× | add-cube-cbrt |
| 23× | *-un-lft-identity |
| 23× | add-sqr-sqrt |
| 18× | times-frac |
| 17× | associate-*r* |
| 12× | add-exp-log |
| 8× | add-cbrt-cube |
| 6× | associate-*l* |
| 6× | unpow-prod-down |
| 5× | pow1 |
| 4× | add-log-exp |
| 3× | associate-/l* |
| 3× | div-inv |
| 3× | prod-exp |
| 3× | associate-/r* |
| 2× | *-commutative |
| 2× | associate-*r/ |
| 2× | pow-exp |
| 2× | pow-to-exp |
| 1× | cbrt-unprod |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | pow-pow |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 20.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 10.0ms | (/ (cos B) (sin B)) |
| 8.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 3.0ms | (* x (/ (cos B) (sin B))) |
| 163.0ms | (* (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) (/ F (sin B))) |
| 113.0ms | (* x (/ (cos B) (sin B))) |
| 76.0ms | (pow (+ (+ 2 (* F F)) (* 2 x)) -1/2) |
| 20.0ms | (/ (cos B) (sin B)) |
| 227.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (* 1/2 (/ (* (pow F 3) (sqrt 1/8)) B)) (* 1/4 (/ (* x F) (* B (sqrt 1/2)))))) |
| 195.0ms | (- (pow 2 -1/2) (+ (* 1/2 (* (pow F 2) (sqrt 1/8))) (* 1/2 (* x (sqrt 1/2))))) |
| 182.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)))) |
| 128.0ms | (- (/ 1 B) (+ (* 1/3 B) (* 1/45 (pow B 3)))) |
| 82.0ms | (/ (* (* (cos B) (cos B)) (cos B)) (* (* (sin B) (sin B)) (sin B))) |
9 alts after pruning (6 fresh and 3 done)
Merged error: 0.0b
98.7% (0.2b remaining)
Error of 0.2b against oracle of 0.1b and baseline of 13.2b
| 10561× | (pre true 80) |
| 4701× | (body real 80) |
| 1719× | (body real 1280) |
| 1695× | (body nan 80) |
| 1389× | (body real 640) |
| 714× | (body real 320) |
| 343× | (body real 160) |