


Bits error versus B



Bits error versus x
Results
Initial program 0.2
Simplified0.2
rmApplied tan-quot0.2
Applied associate-/r/0.2
Final simplification0.2
herbie shell --seed 2019016 +o rules:numerics
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
(+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))))
Time bar (total: 18.0s)Debug log
| 293× | (pre true 80) |
| 154× | (body real 80) |
| 64× | (body real 1280) |
| 40× | (body real 640) |
| 25× | (body real 320) |
| 10× | (body real 160) |
| 59.0ms | (+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 0.2b | (/ x (tan B)) |
| 0.1b | (/ 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 |
| 12.0ms | (- (/ 1 (sin B)) (/ x (tan B))) |
| 2.0ms | (/ 1 (sin B)) |
| 1.0ms | (/ x (tan B)) |
| 135.0ms | (- (/ 1 (sin B)) (/ x (tan B))) |
| 112.0ms | (/ x (tan B)) |
| 14.0ms | (/ 1 (sin B)) |
| 90.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 67.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
| 62.0ms | (fma (sqrt (/ 1 (sin B))) (sqrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
| 61.0ms | (fma 1 (/ 1 (sin B)) (- (* (cos B) (/ x (sin B))))) |
| 60.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (cos B) (/ x (sin B))))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (/ x (sin B)) (cos B)) |
| 0.1b | (/ x (sin B)) |
| 0.1b | (/ 1 (sin B)) |
| 0.0b | (- (/ 1 (sin B)) (* (/ x (sin B)) (cos B))) |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 7× | add-exp-log |
| 7× | pow1 |
| 6× | add-log-exp |
| 6× | add-cbrt-cube |
| 6× | associate-/r* |
| 5× | div-inv |
| 4× | log1p-expm1-u |
| 4× | prod-diff |
| 4× | associate-*l* |
| 4× | fma-neg |
| 4× | expm1-log1p-u |
| 3× | associate-*l/ |
| 3× | associate-*r* |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | sub-div |
| 1× | inv-pow |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | cbrt-unprod |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | rec-exp |
| 9.0ms | (- (/ 1 (sin B)) (* (/ x (sin B)) (cos B))) |
| 7.0ms | (* (/ x (sin B)) (cos B)) |
| 1.0ms | (/ 1 (sin B)) |
| 1.0ms | (/ x (sin B)) |
| 104.0ms | (* (/ x (sin B)) (cos B)) |
| 86.0ms | (- (/ 1 (sin B)) (* (/ x (sin B)) (cos B))) |
| 56.0ms | (/ x (sin B)) |
| 18.0ms | (/ 1 (sin B)) |
| 149.0ms | (+ (* 1/6 B) (+ (/ 1 B) (* 7/360 (pow B 3)))) |
| 146.0ms | (- (* 1 (sin B)) (* (sin B) (* x (cos B)))) |
| 107.0ms | (* (* (* (/ x (sin B)) (/ x (sin B))) (/ x (sin B))) (* (* (cos B) (cos B)) (cos B))) |
| 53.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 48.0ms | (- (+ (* 1/6 B) (/ 1 B)) (/ x B)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.2b | (* x (cos B)) |
| 0.1b | (/ (- 1 (* x (cos B))) (sin B)) |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | times-frac |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-/l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | flip-- |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | div-exp |
| 1× | div-sub |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 6.0ms | (/ (- 1 (* x (cos B))) (sin B)) |
| 3.0ms | (* x (cos B)) |
| 82.0ms | (/ (- 1 (* x (cos B))) (sin B)) |
| 53.0ms | (* x (cos B)) |
| 346.0ms | (- (pow 1 3) (pow (* x (cos B)) 3)) |
| 197.0ms | (/ (* (* (- 1 (* x (cos B))) (- 1 (* x (cos B)))) (- 1 (* x (cos B)))) (* (* (sin B) (sin B)) (sin B))) |
| 45.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 36.0ms | (/ (- 1 (* x (cos B))) (sin B)) |
| 34.0ms | (- (* 1 1) (* (* x (cos B)) (* x (cos B)))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* x (/ 1 (tan B))) |
| 0.2b | (/ 1 (tan B)) |
| 0.1b | (/ 1 (sin 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 |
| 11.0ms | (- (/ 1 (sin B)) (* x (/ 1 (tan B)))) |
| 3.0ms | (* x (/ 1 (tan B))) |
| 2.0ms | (/ 1 (tan B)) |
| 2.0ms | (/ 1 (sin B)) |
| 124.0ms | (* x (/ 1 (tan B))) |
| 97.0ms | (- (/ 1 (sin B)) (* x (/ 1 (tan B)))) |
| 34.0ms | (/ 1 (tan B)) |
| 24.0ms | (/ 1 (sin B)) |
| 210.0ms | (- (/ 1 B) (+ (* 1/3 B) (* 1/45 (pow B 3)))) |
| 73.0ms | (fma (* (cbrt (/ 1 (sin B))) (cbrt (/ 1 (sin B)))) (cbrt (/ 1 (sin B))) (- (* (/ 1 (tan B)) x))) |
| 70.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 60.0ms | (fma 1 (/ 1 (sin B)) (- (* (/ 1 (tan B)) x))) |
| 53.0ms | (/ (exp (/ 1 (sin B))) (exp (* x (/ 1 (tan B))))) |
6 alts after pruning (3 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
| 9115× | (pre true 80) |
| 4899× | (body real 80) |
| 1754× | (body real 1280) |
| 1403× | (body real 640) |
| 694× | (body real 320) |
| 365× | (body real 160) |