


Bits error versus t
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019022 +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: 1.4m)Debug log
| 31.0ms | 256× | body | 80 | valid |
| 524.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-+ |
| 6.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 6.0ms | (/ (* t 2) (+ 1 t)) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 71.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) |
| 33.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) |
| 21.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 16.0ms | (/ (* t 2) (+ 1 t)) |
| 682.0ms | (- (+ (* 2 t) (* 2 (pow t 3))) (* 2 (pow t 2))) |
| 470.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))) |
| 407.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
| 363.0ms | (/ (* (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)))) |
| 353.0ms | (/ (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) |
3 alts after pruning (2 fresh and 1 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))) (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)))) |
| 0.0b | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 0.0b | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 156× | times-frac |
| 94× | add-cube-cbrt |
| 94× | *-un-lft-identity |
| 94× | add-sqr-sqrt |
| 48× | sqrt-prod |
| 28× | associate-/r* |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 6× | associate-/l* |
| 6× | div-inv |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | fma-udef |
| 1× | associate-/r/ |
| 1× | hypot-udef |
| 5.0ms | (/ (hypot 1 (/ (* t 2) (+ 1 t))) (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)))) |
| 4.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 0.0ms | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 0.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 150.0ms | (/ (hypot 1 (/ (* t 2) (+ 1 t))) (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)))) |
| 112.0ms | (/ (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2) (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 48.0ms | (hypot 1 (/ (* t 2) (+ 1 t))) |
| 30.0ms | (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) |
| 664.0ms | (/ 1 (/ (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (sqrt 1))) |
| 607.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)) (sqrt 1))) |
| 508.0ms | (/ 1 (/ (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 2))) (sqrt (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))))) |
| 434.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))) (sqrt (sqrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))))) |
| 433.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))) (sqrt (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.5b | (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 0.5b | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 0.5b | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 0.5b | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 15× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 7.0ms | (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 1.0ms | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 1.0ms | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 1.0ms | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 84.0ms | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 81.0ms | (* (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1))) |
| 81.0ms | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 70.0ms | (cbrt (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 642.0ms | (* (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 621.0ms | (* (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1) (fma (/ (* t 2) (+ 1 t)) (/ (* t 2) (+ 1 t)) 1)) |
| 351.0ms | (- (+ (pow 25 1/3) (* 296/225 (* (/ 1 (pow t 2)) (pow 25 1/3)))) (* 16/15 (* (/ 1 t) (pow 25 1/3)))) |
| 336.0ms | (- (+ (pow 25 1/3) (* 296/225 (* (/ 1 (pow t 2)) (pow 25 1/3)))) (* 16/15 (* (/ 1 t) (pow 25 1/3)))) |
| 286.0ms | (- (+ (* 116/225 (* (/ 1 (pow t 2)) (pow 5 1/3))) (pow 5 1/3)) (* 8/15 (* (/ 1 t) (pow 5 1/3)))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 854.0ms | 8000× | body | 80 | valid |