


Bits error versus B



Bits error versus x
Results
Initial program 0.2
Simplified0.2
Taylor expanded around inf 0.2
Final simplification0.2
herbie shell --seed 2019010
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
(+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))))
Time bar (total: 18.7s)Debug log
| 67.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.2b | (/ 1 (sin B)) |
| 0.0b | (- (/ 1 (sin B)) (/ x (tan B))) |
| 8× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | associate-/r* |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | pow1 |
| 3× | div-inv |
| 3× | add-cbrt-cube |
| 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× | associate-/r/ |
| 1× | tan-quot |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | rec-exp |
| 6.0ms | (- (/ 1 (sin B)) (/ x (tan B))) |
| 2.0ms | (/ x (tan B)) |
| 1.0ms | (/ 1 (sin B)) |
| 150.0ms | (- (/ 1 (sin B)) (/ x (tan B))) |
| 147.0ms | (/ x (tan B)) |
| 22.0ms | (/ 1 (sin B)) |
| 49.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 43.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 40.0ms | (- (+ (* 1/6 B) (/ 1 B)) (/ x B)) |
| 31.0ms | (+ (* 1/6 B) (+ (/ 1 B) (* 7/360 (pow B 3)))) |
| 29.0ms | (/ (exp (/ 1 (sin B))) (exp (/ x (tan B)))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (/ (* x (cos B)) (sin B)) |
| 0.2b | (/ 1 (sin B)) |
| 0.1b | (* x (cos B)) |
| 0.0b | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 12× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 8× | add-cube-cbrt |
| 7× | add-exp-log |
| 6× | add-log-exp |
| 6× | div-inv |
| 6× | add-cbrt-cube |
| 6× | associate-/r* |
| 5× | pow1 |
| 3× | associate-*r* |
| 3× | times-frac |
| 2× | distribute-lft-out-- |
| 2× | distribute-rgt-out-- |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | difference-of-squares |
| 1× | sub-div |
| 1× | inv-pow |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | div-exp |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | rec-exp |
| 1× | cbrt-undiv |
| 8.0ms | (/ (* x (cos B)) (sin B)) |
| 6.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 2.0ms | (* x (cos B)) |
| 2.0ms | (/ 1 (sin B)) |
| 127.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 122.0ms | (/ (* x (cos B)) (sin B)) |
| 34.0ms | (* x (cos B)) |
| 21.0ms | (/ 1 (sin B)) |
| 495.0ms | (/ (* (* (* x (cos B)) (* x (cos B))) (* x (cos B))) (* (* (sin B) (sin B)) (sin B))) |
| 158.0ms | (- (* 1 (sin B)) (* (sin B) (* x (cos B)))) |
| 48.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
| 37.0ms | (- (/ x B) (* 1/3 (* x B))) |
| 36.0ms | (- (log (* x (cos B))) (log (sin B))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (/ 1 (/ (tan B) x)) |
| 0.2b | (/ (tan B) x) |
| 0.2b | (/ 1 (sin B)) |
| 0.0b | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 11× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 8× | div-inv |
| 7× | add-cube-cbrt |
| 7× | associate-/r* |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | pow1 |
| 4× | distribute-lft-out-- |
| 4× | add-cbrt-cube |
| 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× | associate-/r/ |
| 1× | tan-quot |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 9.0ms | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 5.0ms | (/ (tan B) x) |
| 2.0ms | (/ 1 (/ (tan B) x)) |
| 2.0ms | (/ 1 (sin B)) |
| 119.0ms | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 98.0ms | (/ 1 (/ (tan B) x)) |
| 49.0ms | (/ (tan B) x) |
| 23.0ms | (/ 1 (sin B)) |
| 65.0ms | (+ (/ B x) (+ (* 1/3 (/ (pow B 3) x)) (* 2/15 (/ (pow B 5) x)))) |
| 58.0ms | (/ (exp (/ 1 (sin B))) (exp (/ 1 (/ (tan B) x)))) |
| 51.0ms | (+ (* 1/6 B) (+ (/ 1 B) (* 7/360 (pow B 3)))) |
| 50.0ms | (- (/ 1 (sin B)) (/ 1 (/ (tan B) x))) |
| 50.0ms | (- (/ 1 (sin B)) (/ (* x (cos B)) (sin B))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 8.2b | (/ (- (/ (tan B) x) (sin B)) (* (sin B) (/ (tan B) x))) |
| 0.3b | (* (sin B) (/ (tan B) x)) |
| 0.2b | (/ (tan B) x) |
| 0.2b | (/ (tan B) x) |
| 14× | *-un-lft-identity |
| 14× | add-sqr-sqrt |
| 11× | associate-/l* |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 10× | add-cube-cbrt |
| 6× | pow1 |
| 5× | times-frac |
| 4× | associate-/l/ |
| 4× | add-log-exp |
| 4× | div-inv |
| 4× | associate-*r* |
| 3× | associate-*l* |
| 3× | frac-2neg |
| 3× | clear-num |
| 2× | difference-of-squares |
| 2× | distribute-lft-out-- |
| 2× | cbrt-unprod |
| 2× | associate-*r/ |
| 2× | tan-quot |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | flip-- |
| 1× | *-commutative |
| 1× | associate-/r/ |
| 1× | pow-prod-down |
| 1× | div-sub |
| 1× | flip3-- |
| 1× | associate-/r* |
| 28.0ms | (/ (- (/ (tan B) x) (sin B)) (* (sin B) (/ (tan B) x))) |
| 9.0ms | (* (sin B) (/ (tan B) x)) |
| 5.0ms | (/ (tan B) x) |
| 5.0ms | (/ (tan B) x) |
| 223.0ms | (/ (- (/ (tan B) x) (sin B)) (* (sin B) (/ (tan B) x))) |
| 105.0ms | (* (sin B) (/ (tan B) x)) |
| 69.0ms | (/ (tan B) x) |
| 66.0ms | (/ (tan B) x) |
| 727.0ms | (/ (/ (tan B) x) (* (sin B) (/ (tan B) x))) |
| 195.0ms | (- (log (- (/ (tan B) x) (sin B))) (+ (log (sin B)) (log (/ (tan B) x)))) |
| 149.0ms | (/ (* (* (- (/ (tan B) x) (sin B)) (- (/ (tan B) x) (sin B))) (- (/ (tan B) x) (sin B))) (* (* (* (sin B) (sin B)) (sin B)) (* (* (/ (tan B) x) (/ (tan B) x)) (/ (tan B) x)))) |
| 148.0ms | (* (* (* (sin B) (sin B)) (sin B)) (* (* (/ (tan B) x) (/ (tan B) x)) (/ (tan B) x))) |
| 117.0ms | (- (log (- (/ (tan B) x) (sin B))) (log (* (sin B) (/ (tan B) x)))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
0% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b