



Bits error versus t
Results
| Original | 61.8 |
|---|---|
| Target | 50.6 |
| Herbie | 0.3 |
Initial program 61.8
Simplified57.6
Taylor expanded around inf 0.4
rmApplied unpow20.4
Applied associate-*r*0.3
Final simplification0.3
herbie shell --seed 2019010 +o rules:numerics
(FPCore (t)
:name "fma_test1"
:pre (<= 0.9 t 1.1)
:herbie-target
(fma (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16)) (- -1 (* 2 (* t 2e-16))))
(+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))))
Time bar (total: 4.8s)Debug log
| 404.0ms | (+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 57.6b
Found 2 expressions with local error:
| 53.0b | (fma -2 (* 2e-16 t) (fma (fma t 2e-16 1) (fma t 2e-16 1) -1)) |
| 49.7b | (fma (fma t 2e-16 1) (fma t 2e-16 1) -1) |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | fma-udef |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 2× | add-sqr-sqrt |
| 0.0ms | (fma -2 (* 2e-16 t) (fma (fma t 2e-16 1) (fma t 2e-16 1) -1)) |
| 0.0ms | (fma (fma t 2e-16 1) (fma t 2e-16 1) -1) |
| 68.0ms | (fma -2 (* 2e-16 t) (fma (fma t 2e-16 1) (fma t 2e-16 1) -1)) |
| 43.0ms | (fma (fma t 2e-16 1) (fma t 2e-16 1) -1) |
| 31.0ms | (+ (* 4e-16 t) (* 3.9999999999999997e-32 (pow t 2))) |
| 17.0ms | (+ (* 4e-16 t) (* 3.9999999999999997e-32 (pow t 2))) |
| 17.0ms | (+ (* 4e-16 t) (* 3.9999999999999997e-32 (pow t 2))) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.3b
Found 1 expressions with local error:
| 0.2b | (* 3.9999999999999997e-32 (pow t 2)) |
| 4× | associate-*r* |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | unpow2 |
| 1× | log1p-expm1-u |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 18.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 10.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 3.0ms | (cbrt (pow t 2)) |
| 3.0ms | (sqrt (pow t 2)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.1b
Found 1 expressions with local error:
| 0.2b | (* (* 3.9999999999999997e-32 t) t) |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | add-cube-cbrt |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | associate-*l* |
| 1× | add-cbrt-cube |
| 1× | *-un-lft-identity |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 4.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 18.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 6.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.4b | (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) |
| 0.2b | (* (* 3.9999999999999997e-32 t) t) |
| 0.2b | (* (* 3.9999999999999997e-32 t) t) |
| 0.1b | (sqrt (* (* 3.9999999999999997e-32 t) t)) |
| 9× | pow1 |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | add-cbrt-cube |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | pow1/2 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-*r* |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | *-commutative |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | sqrt-unprod |
| 1× | pow-plus |
| 1× | rem-square-sqrt |
| 1× | pow2 |
| 8.0ms | (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) |
| 2.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 2.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 1.0ms | (sqrt (* (* 3.9999999999999997e-32 t) t)) |
| 73.0ms | (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) |
| 20.0ms | (sqrt (* (* 3.9999999999999997e-32 t) t)) |
| 14.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 12.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 371.0ms | (* (* (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) (sqrt (* (* 3.9999999999999997e-32 t) t))) (* (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) (sqrt (* (* 3.9999999999999997e-32 t) t)))) |
| 37.0ms | (* (* (* 3.9999999999999997e-32 t) t) (* (* 3.9999999999999997e-32 t) t)) |
| 35.0ms | (* (* (* 3.9999999999999997e-32 t) t) (* (* 3.9999999999999997e-32 t) t)) |
| 19.0ms | (* -1 (* t (sqrt 3.9999999999999997e-32))) |
| 15.0ms | (* (pow t 2) (pow (sqrt 3.9999999999999997e-32) 2)) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0.0b
0% (0.3b remaining)
Error of 0.3b against oracle of 0.1b and baseline of 0.3b