


Bits error versus f



Bits error versus n
Results
Initial program 0.0
rmApplied log1p-expm1-u0.0
rmApplied neg-mul-10.0
Applied associate-/l*0.0
Final simplification0.0
herbie shell --seed 2019016 +o rules:numerics
(FPCore (f n)
:name "subtraction fraction"
(/ (- (+ f n)) (- f n)))
Time bar (total: 18.8s)Debug log
| 256× | (pre true 80) |
| 256× | (body real 80) |
| 38.0ms | (/ (- (+ f n)) (- f n)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (/ (- (+ f n)) (- f n)) |
| 30× | times-frac |
| 24× | add-cube-cbrt |
| 24× | *-un-lft-identity |
| 24× | add-sqr-sqrt |
| 12× | distribute-rgt-neg-in |
| 12× | distribute-lft-neg-in |
| 10× | associate-/l* |
| 4× | neg-mul-1 |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | distribute-neg-frac |
| 2× | associate-/r/ |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | flip-+ |
| 1× | distribute-frac-neg |
| 1× | div-exp |
| 1× | div-sub |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | neg-sub0 |
| 11.0ms | (/ (- (+ f n)) (- f n)) |
| 56.0ms | (/ (- (+ f n)) (- f n)) |
| 216.0ms | (- (- (* f f) (* n n))) |
| 111.0ms | (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n))) |
| 71.0ms | (/ (- (* (cbrt (+ f n)) (cbrt (+ f n)))) (* (cbrt (- f n)) (cbrt (- f n)))) |
| 47.0ms | (/ (- (* (cbrt (+ f n)) (cbrt (+ f n)))) 1) |
| 36.0ms | (/ (* (cbrt (- (+ f n))) (cbrt (- (+ f n)))) (* (cbrt (- f n)) (cbrt (- f n)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.5b | (expm1 (/ (- (+ f n)) (- f n))) |
| 0.0b | (/ (- (+ f n)) (- f n)) |
| 0.0b | (log1p (expm1 (/ (- (+ f n)) (- f n)))) |
| 30× | times-frac |
| 26× | add-cube-cbrt |
| 26× | *-un-lft-identity |
| 26× | add-sqr-sqrt |
| 12× | distribute-rgt-neg-in |
| 12× | distribute-lft-neg-in |
| 10× | associate-/l* |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 4× | log1p-expm1-u |
| 4× | neg-mul-1 |
| 3× | add-log-exp |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | distribute-neg-frac |
| 2× | associate-/r/ |
| 1× | expm1-udef |
| 1× | flip-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | distribute-frac-neg |
| 1× | log1p-expm1 |
| 1× | div-exp |
| 1× | div-sub |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | expm1-log1p |
| 1× | log1p-udef |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 9.0ms | (/ (- (+ f n)) (- f n)) |
| 1.0ms | (expm1 (/ (- (+ f n)) (- f n))) |
| 0.0ms | (log1p (expm1 (/ (- (+ f n)) (- f n)))) |
| 93.0ms | (expm1 (/ (- (+ f n)) (- f n))) |
| 66.0ms | (log1p (expm1 (/ (- (+ f n)) (- f n)))) |
| 44.0ms | (/ (- (+ f n)) (- f n)) |
| 372.0ms | (/ (sqrt (- (+ f n))) (cbrt (- f n))) |
| 224.0ms | (- (- (* f f) (* n n))) |
| 104.0ms | (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n))) |
| 69.0ms | (/ (- (* (cbrt (+ f n)) (cbrt (+ f n)))) (* (cbrt (- f n)) (cbrt (- f n)))) |
| 41.0ms | (/ (* (cbrt (- (+ f n))) (cbrt (- (+ f n)))) (* (cbrt (- f n)) (cbrt (- f n)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.5b | (expm1 (/ -1 (/ (- f n) (+ f n)))) |
| 0.0b | (/ -1 (/ (- f n) (+ f n))) |
| 0.0b | (/ (- f n) (+ f n)) |
| 0.0b | (log1p (expm1 (/ -1 (/ (- f n) (+ f n))))) |
| 19× | add-cube-cbrt |
| 19× | *-un-lft-identity |
| 19× | add-sqr-sqrt |
| 18× | times-frac |
| 18× | associate-/r* |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | log1p-expm1-u |
| 5× | associate-/r/ |
| 4× | add-log-exp |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | div-inv |
| 2× | associate-/l/ |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | expm1-udef |
| 1× | flip-- |
| 1× | log1p-expm1 |
| 1× | div-exp |
| 1× | div-sub |
| 1× | flip3-- |
| 1× | expm1-log1p |
| 1× | log1p-udef |
| 1× | cbrt-undiv |
| 3.0ms | (/ (- f n) (+ f n)) |
| 1.0ms | (/ -1 (/ (- f n) (+ f n))) |
| 0.0ms | (expm1 (/ -1 (/ (- f n) (+ f n)))) |
| 0.0ms | (log1p (expm1 (/ -1 (/ (- f n) (+ f n))))) |
| 106.0ms | (expm1 (/ -1 (/ (- f n) (+ f n)))) |
| 56.0ms | (log1p (expm1 (/ -1 (/ (- f n) (+ f n))))) |
| 53.0ms | (/ -1 (/ (- f n) (+ f n))) |
| 47.0ms | (/ (- f n) (+ f n)) |
| 304.0ms | (/ (* (* (- f n) (- f n)) (- f n)) (* (* (+ f n) (+ f n)) (+ f n))) |
| 85.0ms | (+ (* f f) (- (* n n) (* f n))) |
| 70.0ms | (/ -1 (/ (- f n) (+ f n))) |
| 69.0ms | (+ (* f f) (- (* n n) (* f n))) |
| 38.0ms | (/ (* (cbrt (- f n)) (cbrt (- f n))) 1) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) |
| 0.0b | (/ (- (+ f n)) (- f n)) |
| 0.0b | (/ (- (+ f n)) (- f n)) |
| 0.0b | (/ (- (+ f n)) (- f n)) |
| 150× | times-frac |
| 113× | add-cube-cbrt |
| 113× | *-un-lft-identity |
| 113× | add-sqr-sqrt |
| 54× | distribute-rgt-neg-in |
| 54× | distribute-lft-neg-in |
| 36× | associate-*l* |
| 36× | associate-*r* |
| 30× | associate-/l* |
| 22× | add-exp-log |
| 22× | add-cbrt-cube |
| 18× | neg-mul-1 |
| 10× | associate-/r/ |
| 9× | associate-/r* |
| 9× | pow1 |
| 7× | distribute-frac-neg |
| 7× | div-exp |
| 7× | cbrt-undiv |
| 6× | associate-/l/ |
| 6× | distribute-neg-frac |
| 5× | flip-- |
| 5× | div-inv |
| 5× | flip3-- |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | expm1-log1p-u |
| 3× | flip-+ |
| 3× | div-sub |
| 3× | flip3-+ |
| 3× | frac-2neg |
| 3× | clear-num |
| 3× | neg-sub0 |
| 1× | distribute-rgt-neg-out |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | sqr-neg |
| 1× | pow-plus |
| 1× | frac-times |
| 1× | pow2 |
| 1× | distribute-lft-neg-out |
| 19.0ms | (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) |
| 9.0ms | (/ (- (+ f n)) (- f n)) |
| 9.0ms | (/ (- (+ f n)) (- f n)) |
| 9.0ms | (/ (- (+ f n)) (- f n)) |
| 49.0ms | (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) |
| 44.0ms | (/ (- (+ f n)) (- f n)) |
| 36.0ms | (/ (- (+ f n)) (- f n)) |
| 35.0ms | (/ (- (+ f n)) (- f n)) |
| 391.0ms | (* (- (+ f n)) (- (+ f n))) |
| 305.0ms | (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) |
| 288.0ms | (* (/ (+ f n) (- f n)) (/ (- (+ f n)) (- f n))) |
| 284.0ms | (- (- (* f f) (* n n))) |
| 267.0ms | (* (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n))) (* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 8000× | (pre true 80) |
| 8000× | (body real 80) |