


Bits error versus a



Bits error versus b
Results
Initial program 29.3
Simplified7.4
rmApplied associate-*r/7.4
Final simplification7.4
herbie shell --seed 2019022 +o rules:numerics
(FPCore (a b)
:name "Eccentricity of an ellipse"
:pre (<= 0 b a 1)
(sqrt (fabs (/ (- (* a a) (* b b)) (* a a)))))
Time bar (total: 17.1s)Debug log
| 18.0ms | 256× | body | 80 | valid |
| 7.0ms | 256× | pre | 80 | true |
| 250.0ms | (sqrt (fabs (/ (- (* a a) (* b b)) (* a a)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 9.9b
Found 3 expressions with local error:
| 10.0b | (sqrt (fabs (- 1 (* (/ b a) (/ b a))))) |
| 0.4b | (* (/ b a) (/ b a)) |
| 0.0b | (- 1 (* (/ b a) (/ b a))) |
| 8× | pow1 |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 4× | associate-*l* |
| 4× | associate-*r* |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | sqrt-prod |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | pow-plus |
| 1× | sub-neg |
| 1× | rem-sqrt-square |
| 1× | frac-times |
| 1× | pow2 |
| 6.0ms | (* (/ b a) (/ b a)) |
| 2.0ms | (- 1 (* (/ b a) (/ b a))) |
| 1.0ms | (sqrt (fabs (- 1 (* (/ b a) (/ b a))))) |
| 26.0ms | (- 1 (* (/ b a) (/ b a))) |
| 20.0ms | (* (/ b a) (/ b a)) |
| 19.0ms | (sqrt (fabs (- 1 (* (/ b a) (/ b a))))) |
| 891.0ms | (* (* (* (/ b a) (/ b a)) (/ b a)) (* (* (/ b a) (/ b a)) (/ b a))) |
| 62.0ms | (sqrt (fabs (- 1 (/ (pow b 2) (pow a 2))))) |
| 61.0ms | (sqrt (* (cbrt (fabs (- 1 (* (/ b a) (/ b a))))) (cbrt (fabs (- 1 (* (/ b a) (/ b a))))))) |
| 54.0ms | (sqrt (fabs (- 1 (/ (pow b 2) (pow a 2))))) |
| 53.0ms | (sqrt (sqrt (fabs (- 1 (* (/ b a) (/ b a)))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 9.9b
Found 4 expressions with local error:
| 10.0b | (sqrt (fabs (- 1 (/ (* (/ b a) b) a)))) |
| 6.9b | (/ (* (/ b a) b) a) |
| 0.2b | (* (/ b a) b) |
| 0.0b | (- 1 (/ (* (/ b a) b) a)) |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | associate-*l* |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 2× | div-inv |
| 2× | associate-*l/ |
| 1× | associate-/l/ |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | *-commutative |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 4.0ms | (/ (* (/ b a) b) a) |
| 2.0ms | (* (/ b a) b) |
| 1.0ms | (- 1 (/ (* (/ b a) b) a)) |
| 1.0ms | (sqrt (fabs (- 1 (/ (* (/ b a) b) a)))) |
| 22.0ms | (/ (* (/ b a) b) a) |
| 19.0ms | (sqrt (fabs (- 1 (/ (* (/ b a) b) a)))) |
| 17.0ms | (- 1 (/ (* (/ b a) b) a)) |
| 10.0ms | (* (/ b a) b) |
| 67.0ms | (sqrt (* (cbrt (fabs (- 1 (/ (* (/ b a) b) a)))) (cbrt (fabs (- 1 (/ (* (/ b a) b) a)))))) |
| 63.0ms | (sqrt (fabs (- 1 (/ (pow b 2) (pow a 2))))) |
| 51.0ms | (sqrt (fabs (- 1 (/ (pow b 2) (pow a 2))))) |
| 46.0ms | (sqrt (sqrt (fabs (- 1 (/ (* (/ b a) b) a))))) |
| 41.0ms | (sqrt (fabs (- 1 (/ (* (/ b a) b) a)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 9.9b
Found 4 expressions with local error:
| 18.9b | (/ (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))) (+ 1 (* (/ b a) (/ b a)))) |
| 10.0b | (sqrt (fabs (/ (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))) (+ 1 (* (/ b a) (/ b a)))))) |
| 0.4b | (* (/ b a) (/ b a)) |
| 0.4b | (* (/ b a) (/ b a)) |
| 19× | add-sqr-sqrt |
| 18× | add-cube-cbrt |
| 18× | *-un-lft-identity |
| 14× | pow1 |
| 12× | times-frac |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 8× | associate-*l* |
| 8× | associate-*r* |
| 5× | div-inv |
| 4× | difference-of-squares |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | cbrt-unprod |
| 2× | pow-prod-up |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | pow-plus |
| 2× | frac-times |
| 2× | pow2 |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | div-exp |
| 1× | div-sub |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | cbrt-undiv |
| 15.0ms | (/ (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))) (+ 1 (* (/ b a) (/ b a)))) |
| 3.0ms | (* (/ b a) (/ b a)) |
| 3.0ms | (* (/ b a) (/ b a)) |
| 1.0ms | (sqrt (fabs (/ (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))) (+ 1 (* (/ b a) (/ b a)))))) |
| 53.0ms | (/ (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))) (+ 1 (* (/ b a) (/ b a)))) |
| 33.0ms | (sqrt (fabs (/ (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))) (+ 1 (* (/ b a) (/ b a)))))) |
| 23.0ms | (* (/ b a) (/ b a)) |
| 13.0ms | (* (/ b a) (/ b a)) |
| 855.0ms | (* (* (* (/ b a) (/ b a)) (/ b a)) (* (* (/ b a) (/ b a)) (/ b a))) |
| 834.0ms | (* (* (* (/ b a) (/ b a)) (/ b a)) (* (* (/ b a) (/ b a)) (/ b a))) |
| 688.0ms | (/ (sqrt (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a))))) (* (cbrt (+ 1 (* (/ b a) (/ b a)))) (cbrt (+ 1 (* (/ b a) (/ b a)))))) |
| 602.0ms | (- (pow (* 1 1) 3) (pow (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a))) 3)) |
| 455.0ms | (/ (* (cbrt (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a))))) (cbrt (- (* 1 1) (* (* (/ b a) (/ b a)) (* (/ b a) (/ b a)))))) (* (cbrt (+ 1 (* (/ b a) (/ b a)))) (cbrt (+ 1 (* (/ b a) (/ b a)))))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 9.9b
0% (0.0b remaining)
Error of 7.4b against oracle of 7.4b and baseline of 7.4b
| 834.0ms | 8000× | body | 80 | valid |
| 272.0ms | 8000× | pre | 80 | true |