


Bits error versus t
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019016 +o rules:numerics
(FPCore (t)
:name "Kahan p13 Example 1"
(/ (+ 1 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t)))) (+ 2 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t))))))
Time bar (total: 52.1s)Debug log
| 256× | (pre true 80) |
| 256× | (body real 80) |
| 525.0ms | (/ (+ 1 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t)))) (+ 2 (* (/ (* 2 t) (+ 1 t)) (/ (* 2 t) (+ 1 t))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 0.0b | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 0.0b | (/ (* t 2) (+ 1 t)) |
| 14× | add-cube-cbrt |
| 14× | *-un-lft-identity |
| 14× | add-sqr-sqrt |
| 12× | times-frac |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 6× | associate-/r* |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | div-inv |
| 2× | fma-udef |
| 2× | associate-/r/ |
| 2× | div-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | cbrt-undiv |
| 1× | flip-+ |
| 1× | flip3-+ |
| 14.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 7.0ms | (/ (* t 2) (+ 1 t)) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 76.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 37.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 36.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 19.0ms | (/ (* t 2) (+ 1 t)) |
| 688.0ms | (- (+ (* 2 t) (* 2 (pow t 3))) (* 2 (pow t 2))) |
| 424.0ms | (/ (* (* (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (* (* (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 390.0ms | (- (log (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (log (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 369.0ms | (/ (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 365.0ms | (/ (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 0.0b | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 0.0b | (/ 1 (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 19× | add-cube-cbrt |
| 19× | *-un-lft-identity |
| 19× | add-sqr-sqrt |
| 18× | times-frac |
| 16× | associate-/r* |
| 9× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | div-inv |
| 2× | fma-udef |
| 2× | div-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | associate-/r/ |
| 1× | cbrt-undiv |
| 3.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 2.0ms | (/ 1 (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 67.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 52.0ms | (/ 1 (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 35.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 22.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 385.0ms | (/ (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)))) |
| 376.0ms | (/ (* (* (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (* (* (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 360.0ms | (/ (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 358.0ms | (/ (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 342.0ms | (cbrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 0.0b | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 0.0b | (/ (hypot 1 (/ (* t 2) (+ 1 t))) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 12× | add-cube-cbrt |
| 12× | *-un-lft-identity |
| 12× | add-sqr-sqrt |
| 9× | times-frac |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | associate-/r* |
| 2× | hypot-udef |
| 1× | div-inv |
| 1× | fma-udef |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 4.0ms | (/ (hypot 1 (/ (* t 2) (+ 1 t))) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 3.0ms | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 0.0ms | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 93.0ms | (/ (hypot 1 (/ (* t 2) (+ 1 t))) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 43.0ms | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 39.0ms | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 21.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 679.0ms | (/ (hypot 1 (/ (* t 2) (+ 1 t))) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 397.0ms | (/ (* (cbrt (hypot 1 (/ (* t 2) (+ 1 t)))) (cbrt (hypot 1 (/ (* t 2) (+ 1 t))))) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 359.0ms | (/ (sqrt (hypot 1 (/ (* t 2) (+ 1 t)))) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 343.0ms | (/ 1 (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 343.0ms | (/ (* (cbrt (hypot 1 (/ (* t 2) (+ 1 t)))) (cbrt (hypot 1 (/ (* t 2) (+ 1 t))))) (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.5b | (* (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 26× | sqrt-prod |
| 20× | add-cube-cbrt |
| 20× | *-un-lft-identity |
| 20× | add-sqr-sqrt |
| 18× | times-frac |
| 16× | associate-*l* |
| 16× | associate-*r* |
| 9× | pow1 |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | sqrt-div |
| 4× | pow1/2 |
| 4× | expm1-log1p-u |
| 3× | fma-udef |
| 2× | div-inv |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | sqrt-unprod |
| 1× | pow-plus |
| 1× | rem-square-sqrt |
| 1× | frac-times |
| 1× | pow2 |
| 14.0ms | (* (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 74.0ms | (* (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) |
| 36.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 24.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 21.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 1.0s | (* (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 863.0ms | (* (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 633.0ms | (* (* (* (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) (* (* (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)))) (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))))) |
| 381.0ms | (sqrt (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 378.0ms | (sqrt (/ (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))))) |
4 alts after pruning (0 fresh and 4 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) |