1.7 \cdot 10^{+308} \cdot t - 1.7 \cdot 10^{+308}-1.7 \cdot 10^{+308}(FPCore (t) :precision binary64 (- (* 1.7e+308 t) 1.7e+308))
(FPCore (t) :precision binary64 -1.7e+308)
double code(double t) {
return (1.7e+308 * t) - 1.7e+308;
}
double code(double t) {
return -1.7e+308;
}




Bits error versus t
Results
| Original | 64.0 |
|---|---|
| Target | 0 |
| Herbie | 64.0 |
Initial program 64.0
Taylor expanded around 0 64.0
Final simplification64.0
herbie shell --seed 2021019
(FPCore (t)
:name "fma_test2"
:precision binary64
:pre (<= 1.9 t 2.1)
:herbie-target
(fma 1.7e+308 t (- 1.7e+308))
(- (* 1.7e+308 t) 1.7e+308))