


Bits error versus B



Bits error versus x
Initial program 0.2
Simplified0.2
rmApplied tan-quot0.2
Applied associate-/r/0.2
Applied add-cube-cbrt0.8
Applied prod-diff0.8
Simplified0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019022 +o rules:numerics
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
(+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))))
Time bar (total: 21.0s)Debug log
| 194.0ms | 63× | body | 1280 | valid |
| 103.0ms | 155× | body | 80 | valid |
| 53.0ms | 41× | body | 640 | valid |
| 25.0ms | 24× | body | 320 | valid |
| 8.0ms | 14× | body | 160 | valid |
| 147.0ms | (+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.2b
Found 3 expressions with local error:
| 0.2b | (/ x (tan B)) |
| 0.2b | (/ 1 (sin B)) |
| 0.0b | (- (/ 1 (sin B)) (/ x (tan B))) |
| 20× | prod-diff |
| 18× | *-un-lft-identity |
| 17× | add-sqr-sqrt |
| 15× | add-cube-cbrt |
| 13× | div-inv |
| 6× | associate-/r* |
| 5× | add-log-exp |
| 5× | associate-/r/ |
| 5× | tan-quot |
| 4× | add-exp-log |
| 4× | fma-neg |
| 4× | pow1 |
| 3× | log1p-expm1-u |
| 3× | add-cbrt-cube |
| 3× | expm1-log1p-u |
| 2× | distribute-lft-out-- |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | difference-of-squares |
| 1× | inv-pow |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | frac-sub |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | rec-exp |
| 10.0ms | (- (/ 1 (sin B)) (/ x (tan B))) |
| 3.0ms | (/ x (tan B)) |
| 1.0ms | (/ 1 (sin B)) |
| 617.0ms | (/ x (tan B)) |
| 133.0ms | (- (/ 1 (sin B)) (/ x (tan B))) |
| 24.0ms | (/ 1 (sin B)) |
| 93.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
| 84.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 81.0ms | (fma (sqrt (/ 1 (sin B))) (sqrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
| 69.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 60.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (cos B) (/ x (sin B))))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.2b | (/ 1 (sin B)) |
| 0.1b | (/ (- x) (sin B)) |
| 0.1b | (fma (cos B) (/ (- x) (sin B)) (/ 1 (sin B))) |
| 13× | add-cube-cbrt |
| 13× | *-un-lft-identity |
| 13× | add-sqr-sqrt |
| 12× | times-frac |
| 6× | add-exp-log |
| 6× | associate-/r* |
| 5× | add-cbrt-cube |
| 4× | associate-/l* |
| 4× | neg-mul-1 |
| 4× | pow1 |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | fma-udef |
| 1× | distribute-frac-neg |
| 1× | div-exp |
| 1× | div-sub |
| 1× | rec-exp |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 6.0ms | (/ (- x) (sin B)) |
| 2.0ms | (/ 1 (sin B)) |
| 0.0ms | (fma (cos B) (/ (- x) (sin B)) (/ 1 (sin B))) |
| 108.0ms | (fma (cos B) (/ (- x) (sin B)) (/ 1 (sin B))) |
| 74.0ms | (/ (- x) (sin B)) |
| 14.0ms | (/ 1 (sin B)) |
| 159.0ms | (/ (* (* (- x) (- x)) (- x)) (* (* (sin B) (sin B)) (sin B))) |
| 52.0ms | (+ (* 1/6 B) (+ (/ 1 B) (* 7/360 (pow B 3)))) |
| 49.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 49.0ms | (- (+ (* 1/6 B) (/ 1 B)) (/ x B)) |
| 28.0ms | (/ (* (cbrt (- x)) (cbrt (- x))) (* (cbrt (sin B)) (cbrt (sin B)))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* x (/ 1 (tan B))) |
| 0.2b | (/ 1 (sin B)) |
| 0.2b | (/ 1 (tan B)) |
| 0.0b | (- (/ 1 (sin B)) (* x (/ 1 (tan B)))) |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | associate-/r* |
| 6× | pow1 |
| 5× | div-inv |
| 5× | associate-*r* |
| 4× | log1p-expm1-u |
| 4× | prod-diff |
| 4× | fma-neg |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | frac-sub |
| 2× | un-div-inv |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | tan-quot |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | flip-- |
| 1× | *-commutative |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 5.0ms | (- (/ 1 (sin B)) (* x (/ 1 (tan B)))) |
| 1.0ms | (* x (/ 1 (tan B))) |
| 1.0ms | (/ 1 (tan B)) |
| 1.0ms | (/ 1 (sin B)) |
| 134.0ms | (* x (/ 1 (tan B))) |
| 124.0ms | (- (/ 1 (sin B)) (* x (/ 1 (tan B)))) |
| 34.0ms | (/ 1 (tan B)) |
| 13.0ms | (/ 1 (sin B)) |
| 199.0ms | (- (/ 1 B) (+ (* 1/3 B) (* 1/45 (pow B 3)))) |
| 76.0ms | (fma (sqrt (/ 1 (sin B))) (sqrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
| 67.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 61.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 59.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (/ 1 (/ (tan B) x)) |
| 0.2b | (/ 1 (sin B)) |
| 0.1b | (/ (tan B) x) |
| 0.0b | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 21× | *-un-lft-identity |
| 20× | prod-diff |
| 19× | add-sqr-sqrt |
| 18× | div-inv |
| 17× | add-cube-cbrt |
| 7× | associate-/r* |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | pow1 |
| 5× | associate-/r/ |
| 4× | distribute-lft-out-- |
| 4× | log1p-expm1-u |
| 4× | fma-neg |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | frac-2neg |
| 3× | clear-num |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | rec-exp |
| 1× | associate-/l/ |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | frac-sub |
| 1× | tan-quot |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 5.0ms | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 2.0ms | (/ (tan B) x) |
| 1.0ms | (/ 1 (/ (tan B) x)) |
| 1.0ms | (/ 1 (sin B)) |
| 104.0ms | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 80.0ms | (/ 1 (/ (tan B) x)) |
| 61.0ms | (/ (tan B) x) |
| 23.0ms | (/ 1 (sin B)) |
| 127.0ms | (+ (/ B x) (+ (* 1/3 (/ (pow B 3) x)) (* 2/15 (/ (pow B 5) x)))) |
| 106.0ms | (fma 1 (/ 1 (sin B)) (- (* x (/ 1 (tan B))))) |
| 97.0ms | (fma (- (/ 1 (/ (tan B) x))) 1 (* (/ 1 (/ (tan B) x)) 1)) |
| 88.0ms | (fma (- (/ 1 (/ (tan B) x))) 1 (* (/ 1 (/ (tan B) x)) 1)) |
| 85.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (/ 1 (/ (tan B) x)) 1))) |
10 alts after pruning (7 fresh and 3 done)
Merged error: 0.0b
0% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b
| 4.3s | 1768× | body | 1280 | valid |
| 2.0s | 1401× | body | 640 | valid |
| 1.5s | 4926× | body | 80 | valid |
| 702.0ms | 708× | body | 320 | valid |
| 200.0ms | 351× | body | 160 | valid |