


Bits error versus a



Bits error versus b
Results
Initial program 14.3
Simplified0.3
Taylor expanded around -inf 0.3
rmApplied associate-/r*0.3
Final simplification0.3
herbie shell --seed 2019010
(FPCore (a b)
:name "NMSE Section 6.1 mentioned, B"
(* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))))
Time bar (total: 21.0s)Debug log
| 334.0ms | (* (* (/ PI 2) (/ 1 (- (* b b) (* a a)))) (- (/ 1 a) (/ 1 b))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 0.3b | (/ (/ PI 2) (+ a b)) |
| 0.2b | (/ (- (/ 1 a) (/ 1 b)) (- b a)) |
| 0.2b | (* (/ (- (/ 1 a) (/ 1 b)) (- b a)) (/ (/ PI 2) (+ a b))) |
| 0.0b | (- (/ 1 a) (/ 1 b)) |
| 78× | *-un-lft-identity |
| 72× | times-frac |
| 62× | add-sqr-sqrt |
| 46× | add-cube-cbrt |
| 43× | div-inv |
| 32× | distribute-lft-out-- |
| 30× | associate-*l* |
| 20× | add-exp-log |
| 20× | add-cbrt-cube |
| 18× | associate-*r* |
| 12× | associate-/l* |
| 8× | difference-of-squares |
| 8× | associate-/r/ |
| 6× | add-log-exp |
| 6× | div-exp |
| 6× | associate-/r* |
| 6× | cbrt-undiv |
| 6× | pow1 |
| 4× | associate-/l/ |
| 4× | flip-- |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | flip3-- |
| 2× | flip-+ |
| 2× | frac-sub |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | div-sub |
| 1× | diff-log |
| 1× | sub-neg |
| 1× | frac-times |
| 30.0ms | (* (/ (- (/ 1 a) (/ 1 b)) (- b a)) (/ (/ PI 2) (+ a b))) |
| 18.0ms | (/ (- (/ 1 a) (/ 1 b)) (- b a)) |
| 9.0ms | (/ (/ PI 2) (+ a b)) |
| 7.0ms | (- (/ 1 a) (/ 1 b)) |
| 110.0ms | (* (/ (- (/ 1 a) (/ 1 b)) (- b a)) (/ (/ PI 2) (+ a b))) |
| 74.0ms | (/ (/ PI 2) (+ a b)) |
| 27.0ms | (/ (- (/ 1 a) (/ 1 b)) (- b a)) |
| 14.0ms | (- (/ 1 a) (/ 1 b)) |
| 489.0ms | (+ (- (log (- (/ 1 a) (/ 1 b))) (log (- b a))) (- (log (/ PI 2)) (log (+ a b)))) |
| 396.0ms | (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ a b) (+ a b)) (+ a b))) |
| 336.0ms | (+ (log (/ (- (/ 1 a) (/ 1 b)) (- b a))) (- (log (/ PI 2)) (log (+ a b)))) |
| 281.0ms | (* (/ (* (* (- (/ 1 a) (/ 1 b)) (- (/ 1 a) (/ 1 b))) (- (/ 1 a) (/ 1 b))) (* (* (- b a) (- b a)) (- b a))) (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ a b) (+ a b)) (+ a b)))) |
| 264.0ms | (+ (- (log (- (/ 1 a) (/ 1 b))) (log (- b a))) (log (/ (/ PI 2) (+ a b)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.6b | (/ 1 (* a b)) |
| 0.3b | (/ (/ PI 2) (+ a b)) |
| 0.2b | (* (/ 1 (* a b)) (/ (/ PI 2) (+ a b))) |
| 24× | times-frac |
| 21× | add-cube-cbrt |
| 21× | *-un-lft-identity |
| 21× | add-sqr-sqrt |
| 18× | associate-*r* |
| 16× | add-exp-log |
| 11× | div-inv |
| 10× | add-cbrt-cube |
| 6× | pow1 |
| 4× | associate-/l* |
| 4× | associate-/r/ |
| 4× | prod-exp |
| 4× | associate-*l* |
| 4× | associate-/r* |
| 3× | add-log-exp |
| 3× | div-exp |
| 3× | rec-exp |
| 2× | flip-+ |
| 2× | cbrt-unprod |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | frac-times |
| 9.0ms | (* (/ 1 (* a b)) (/ (/ PI 2) (+ a b))) |
| 3.0ms | (/ (/ PI 2) (+ a b)) |
| 1.0ms | (/ 1 (* a b)) |
| 74.0ms | (* (/ 1 (* a b)) (/ (/ PI 2) (+ a b))) |
| 61.0ms | (/ (/ PI 2) (+ a b)) |
| 12.0ms | (/ 1 (* a b)) |
| 441.0ms | (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ a b) (+ a b)) (+ a b))) |
| 411.0ms | (+ (log (/ 1 (* a b))) (- (log (/ PI 2)) (log (+ a b)))) |
| 324.0ms | (+ (- (log (* a b))) (- (log (/ PI 2)) (log (+ a b)))) |
| 257.0ms | (+ (log (/ 1 (* a b))) (log (/ (/ PI 2) (+ a b)))) |
| 199.0ms | (* (* (* (/ 1 (* a b)) (/ 1 (* a b))) (/ 1 (* a b))) (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ a b) (+ a b)) (+ a b)))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.3b | (/ (/ PI 2) (+ a b)) |
| 0.2b | (/ (/ 1 a) b) |
| 0.2b | (* (/ (/ 1 a) b) (/ (/ PI 2) (+ a b))) |
| 24× | times-frac |
| 22× | add-cube-cbrt |
| 22× | *-un-lft-identity |
| 22× | add-sqr-sqrt |
| 18× | associate-*r* |
| 12× | div-inv |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 8× | associate-/l* |
| 5× | pow1 |
| 4× | associate-/r/ |
| 4× | associate-*l* |
| 3× | add-log-exp |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-+ |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | cbrt-undiv |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | frac-times |
| 7.0ms | (* (/ (/ 1 a) b) (/ (/ PI 2) (+ a b))) |
| 7.0ms | (/ (/ PI 2) (+ a b)) |
| 5.0ms | (/ (/ 1 a) b) |
| 80.0ms | (* (/ (/ 1 a) b) (/ (/ PI 2) (+ a b))) |
| 52.0ms | (/ (/ PI 2) (+ a b)) |
| 10.0ms | (/ (/ 1 a) b) |
| 351.0ms | (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ a b) (+ a b)) (+ a b))) |
| 289.0ms | (+ (log (/ (/ 1 a) b)) (log (/ (/ PI 2) (+ a b)))) |
| 221.0ms | (* (/ 1 a) (/ (/ PI 2) (+ a b))) |
| 218.0ms | (* (* (* (/ (/ 1 a) b) (/ (/ 1 a) b)) (/ (/ 1 a) b)) (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ a b) (+ a b)) (+ a b)))) |
| 90.0ms | (* (* (* (/ (/ 1 a) b) (/ (/ 1 a) b)) (/ (/ 1 a) b)) (* (* (/ (/ PI 2) (+ a b)) (/ (/ PI 2) (+ a b))) (/ (/ PI 2) (+ a b)))) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.3b | (/ (/ PI 2) (+ b a)) |
| 0.2b | (/ (/ (/ PI 2) (+ b a)) (* a b)) |
| 54× | times-frac |
| 27× | add-cube-cbrt |
| 27× | *-un-lft-identity |
| 27× | add-sqr-sqrt |
| 22× | associate-/l* |
| 14× | div-inv |
| 9× | add-exp-log |
| 9× | add-cbrt-cube |
| 6× | associate-/r/ |
| 4× | div-exp |
| 4× | associate-/r* |
| 4× | cbrt-undiv |
| 3× | flip-+ |
| 3× | flip3-+ |
| 2× | associate-/l/ |
| 2× | add-log-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | pow1 |
| 6.0ms | (/ (/ (/ PI 2) (+ b a)) (* a b)) |
| 3.0ms | (/ (/ PI 2) (+ b a)) |
| 90.0ms | (/ (/ (/ PI 2) (+ b a)) (* a b)) |
| 68.0ms | (/ (/ PI 2) (+ b a)) |
| 437.0ms | (- (- (log (/ PI 2)) (log (+ b a))) (log (* a b))) |
| 340.0ms | (/ (* (* (/ PI 2) (/ PI 2)) (/ PI 2)) (* (* (+ b a) (+ b a)) (+ b a))) |
| 304.0ms | (/ (/ PI 2) (- (* b b) (* a a))) |
| 239.0ms | (/ (/ (/ PI 2) (- (* b b) (* a a))) a) |
| 166.0ms | (- (log (/ (/ PI 2) (+ b a))) (log (* a b))) |
7 alts after pruning (4 fresh and 3 done)
Merged error: 0b
0% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 0.3b