


Bits error versus F



Bits error versus B



Bits error versus x
Initial program 13.3
Simplified13.2
rmApplied add-sqr-sqrt13.2
Applied unpow-prod-down13.2
rmApplied add-sqr-sqrt13.2
Applied sqrt-prod13.2
Applied unpow-prod-down13.2
Applied associate-*r*13.2
Final simplification13.2
herbie shell --seed 2019016 +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: 30.8s)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) |
| 151.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 (fma 2 x (fma F F 2)) -1/2) |
| 4.7b | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.2b | (/ (- x) (tan B)) |
| 0.1b | (/ 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 |
| 7.0ms | (/ (- x) (tan B)) |
| 4.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))) |
| 240.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 238.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (/ F (sin B)) (/ (- x) (tan B))) |
| 128.0ms | (/ (- x) (tan B)) |
| 67.0ms | (/ F (sin B)) |
| 244.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 224.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))) |
| 213.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)))))) |
| 208.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))) |
| 206.0ms | (/ (* (* (- x) (- x)) (- x)) (* (* (tan B) (tan B)) (tan B))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 12.3b
Found 4 expressions with local error:
| 17.2b | (pow (fma 2 x (fma F F 2)) -1/2) |
| 4.7b | (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 |
| 6.0ms | (/ (- x) (tan B)) |
| 2.0ms | (* F (/ 1 (sin B))) |
| 2.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 (/ 1 (sin B))) (/ (- x) (tan B))) |
| 238.0ms | (fma (pow (fma 2 x (fma F F 2)) -1/2) (* F (/ 1 (sin B))) (/ (- x) (tan B))) |
| 214.0ms | (pow (fma 2 x (fma F F 2)) -1/2) |
| 164.0ms | (/ (- x) (tan B)) |
| 60.0ms | (* F (/ 1 (sin B))) |
| 272.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 240.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)))))) |
| 237.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)))))) |
| 215.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))) |
| 192.0ms | (/ (* (* (- x) (- x)) (- x)) (* (* (tan B) (tan B)) (tan B))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 12.3b
Found 4 expressions with local error:
| 17.2b | (sqrt (fma 2 x (fma F F 2))) |
| 17.2b | (sqrt (fma 2 x (fma F F 2))) |
| 4.7b | (fma (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) (/ F (sin B)) (/ (- x) (tan B))) |
| 0.7b | (* (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 |
| 15.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 (sin B)) (/ (- x) (tan B))) |
| 162.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 (sin B)) (/ (- x) (tan B))) |
| 68.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 61.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 48.0ms | (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (fma 2 x (fma F F 2))) -1/2)) |
| 293.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 225.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 172.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 157.0ms | (- (+ (* 3/2 (* (sqrt 1/32) (pow x 2))) (sqrt 1/2)) (* x (sqrt 1/8))) |
| 83.0ms | (* -1 (/ (* x (cos B)) (sin B))) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 11.2b
Found 4 expressions with local error:
| 17.2b | (sqrt (fma 2 x (fma F F 2))) |
| 17.2b | (sqrt (fma 2 x (fma F F 2))) |
| 17.2b | (sqrt (fma 2 x (fma F F 2))) |
| 4.7b | (fma (* (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (sqrt (fma 2 x (fma F F 2)))) -1/2)) (pow (sqrt (sqrt (fma 2 x (fma F F 2)))) -1/2)) (/ F (sin B)) (/ (- x) (tan B))) |
| 10× | add-sqr-sqrt |
| 9× | sqrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | pow1/2 |
| 3× | rem-sqrt-square |
| 1× | fma-udef |
| 1.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 1.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 1.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 (sqrt (fma 2 x (fma F F 2)))) -1/2)) (pow (sqrt (sqrt (fma 2 x (fma F F 2)))) -1/2)) (/ F (sin B)) (/ (- x) (tan B))) |
| 183.0ms | (fma (* (* (pow (sqrt (fma 2 x (fma F F 2))) -1/2) (pow (sqrt (sqrt (fma 2 x (fma F F 2)))) -1/2)) (pow (sqrt (sqrt (fma 2 x (fma F F 2)))) -1/2)) (/ F (sin B)) (/ (- x) (tan B))) |
| 62.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 55.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 49.0ms | (sqrt (fma 2 x (fma F F 2))) |
| 232.0ms | (- (/ (* F (sqrt 1/2)) B) (+ (/ x B) (/ (* x (* F (sqrt 1/8))) B))) |
| 199.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 199.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 142.0ms | (- (+ (sqrt 2) (* x (sqrt 1/2))) (* 1/2 (* (pow x 2) (sqrt 1/8)))) |
| 42.0ms | (sqrt (* (cbrt (fma 2 x (fma F F 2))) (cbrt (fma 2 x (fma F F 2))))) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 11.2b
0% (2.1b remaining)
Error of 13.2b against oracle of 11.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) |