


Bits error versus F



Bits error versus B



Bits error versus x
Initial program 13.6
Simplified13.5
rmApplied div-inv13.6
rmApplied div-inv13.6
Final simplification13.6
herbie shell --seed 2019022 +o rules:numerics
(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: 31.1s)Debug log
| 152.0ms | 54× | body | 1280 | valid |
| 107.0ms | 149× | body | 80 | valid |
| 75.0ms | 44× | body | 640 | valid |
| 31.0ms | 24× | body | 320 | valid |
| 17.0ms | 48× | body | 80 | nan |
| 13.0ms | 14× | body | 160 | valid |
| 203.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: 15.1b
Found 4 expressions with local error:
| 17.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.9b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.2b | (/ (- x) (tan B)) |
| 0.2b | (/ F (sin B)) |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 15× | add-sqr-sqrt |
| 12× | times-frac |
| 7× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | associate-/r* |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | neg-mul-1 |
| 4× | expm1-log1p-u |
| 3× | unpow-prod-down |
| 2× | div-inv |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | fma-udef |
| 1× | associate-/r/ |
| 1× | distribute-frac-neg |
| 1× | tan-quot |
| 1× | pow-exp |
| 1× | div-exp |
| 1× | div-sub |
| 1× | pow-pow |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 1× | neg-sub0 |
| 6.0ms | (/ (- x) (tan B)) |
| 2.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 1.0ms | (/ F (sin B)) |
| 0.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 213.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 210.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 101.0ms | (/ (- x) (tan B)) |
| 75.0ms | (/ F (sin B)) |
| 262.0ms | (- (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (* x (sin B)))))) |
| 240.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 227.0ms | (- (+ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (* 3/8 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (pow x 2)))) (* 1/2 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) x))) |
| 204.0ms | (- (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* x (sin B)))))) |
| 179.0ms | (/ (* (* (- x) (- x)) (- x)) (* (* (tan B) (tan B)) (tan B))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 14.5b
Found 4 expressions with local error:
| 17.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.9b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 0.3b | (* F (/ 1 (sin B))) |
| 0.2b | (/ (- x) (tan B)) |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 15× | add-sqr-sqrt |
| 12× | times-frac |
| 7× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | associate-*r* |
| 4× | neg-mul-1 |
| 4× | expm1-log1p-u |
| 3× | unpow-prod-down |
| 3× | associate-/r* |
| 2× | div-inv |
| 1× | fma-udef |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-/r/ |
| 1× | distribute-frac-neg |
| 1× | associate-*r/ |
| 1× | tan-quot |
| 1× | pow-exp |
| 1× | div-exp |
| 1× | div-sub |
| 1× | frac-2neg |
| 1× | pow-pow |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 1× | neg-sub0 |
| 3.0ms | (/ (- x) (tan B)) |
| 1.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 1.0ms | (* F (/ 1 (sin B))) |
| 0.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 215.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 185.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 123.0ms | (/ (- x) (tan B)) |
| 58.0ms | (* F (/ 1 (sin B))) |
| 257.0ms | (- (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* (exp (* -1/2 (- (log -2) (log (/ -1 x))))) F) (* x (sin B)))))) |
| 240.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 238.0ms | (- (+ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (* 3/8 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (pow x 2)))) (* 1/2 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) x))) |
| 203.0ms | (- (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* x (sin B)))))) |
| 180.0ms | (/ (* (* (- x) (- x)) (- x)) (* (* (tan B) (tan B)) (tan B))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 14.5b
Found 4 expressions with local error:
| 17.3b | (sqrt (fma 2 x (fma F F 2))) |
| 17.3b | (sqrt (fma 2 x (fma F F 2))) |
| 6.9b | (fma (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 0.6b | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 16× | add-exp-log |
| 14× | add-sqr-sqrt |
| 12× | sqrt-prod |
| 12× | add-cube-cbrt |
| 12× | *-un-lft-identity |
| 12× | unpow-prod-down |
| 9× | prod-exp |
| 9× | associate-*l* |
| 9× | associate-*r* |
| 6× | pow-exp |
| 6× | add-cbrt-cube |
| 6× | pow-to-exp |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | pow1/2 |
| 2× | rem-sqrt-square |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | pow2 |
| 9.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 2.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 2.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 0.0ms | (fma (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 177.0ms | (fma (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 77.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 58.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 43.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 254.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 201.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 156.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 110.0ms | (- (+ (* 3/2 (* (sqrt 1/32) (pow x 2))) (sqrt 1/2)) (* x (sqrt 1/8))) |
| 68.0ms | (* (* (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (* (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (pow (sqrt (fma 2 x (fma F F 2))) -1/2))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 13.0b
Found 4 expressions with local error:
| 17.3b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 6.9b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (* (cos B) (- x)) (sin B))) |
| 0.2b | (/ (* (cos B) (- x)) (sin B)) |
| 0.2b | (* (cos B) (- x)) |
| 12× | add-exp-log |
| 11× | add-cbrt-cube |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 7× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-*r* |
| 4× | expm1-log1p-u |
| 3× | associate-*l* |
| 3× | times-frac |
| 3× | unpow-prod-down |
| 3× | associate-/r* |
| 2× | cbrt-unprod |
| 2× | distribute-rgt-neg-out |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | fma-udef |
| 1× | *-commutative |
| 1× | distribute-frac-neg |
| 1× | pow-exp |
| 1× | pow-prod-down |
| 1× | frac-2neg |
| 1× | pow-pow |
| 1× | neg-mul-1 |
| 1× | clear-num |
| 1× | pow-to-exp |
| 7.0ms | (/ (* (cos B) (- x)) (sin B)) |
| 4.0ms | (* (cos B) (- x)) |
| 1.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 0.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (* (cos B) (- x)) (sin B))) |
| 207.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (* (cos B) (- x)) (sin B))) |
| 192.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 89.0ms | (/ (* (cos B) (- x)) (sin B)) |
| 43.0ms | (* (cos B) (- x)) |
| 279.0ms | (* (* (* (cos B) (cos B)) (cos B)) (* (* (- x) (- x)) (- x))) |
| 218.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 213.0ms | (- (+ (* 3/8 (/ (exp (* -1/2 (- (log 2) (log (/ 1 x))))) (pow x 2))) (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* 1/2 (/ (exp (* -1/2 (- (log 2) (log (/ 1 x))))) x))) |
| 204.0ms | (- (+ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (* 3/8 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) (pow x 2)))) (* 1/2 (/ (exp (* -1/2 (- (log -2) (log (/ -1 x))))) x))) |
| 197.0ms | (- (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (sin B)) (+ (/ (* x (cos B)) (sin B)) (* 1/2 (/ (* F (exp (* -1/2 (- (log 2) (log (/ 1 x)))))) (* x (sin B)))))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 13.0b
0% (2.1b remaining)
Error of 13.6b against oracle of 11.6b and baseline of 13.6b
| 5.1s | 1695× | body | 1280 | valid |
| 3.7s | 1373× | body | 640 | valid |
| 2.6s | 4804× | body | 80 | valid |
| 1.5s | 677× | body | 320 | valid |
| 851.0ms | 1629× | body | 80 | nan |
| 367.0ms | 349× | body | 160 | valid |