Average Error: 64.0 → 64.0
Time: 978.0ms
Precision: 64
\[1.899999999999999911182158029987476766109 \le t \le 2.100000000000000088817841970012523233891\]
\[1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]
\[1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]
1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}
1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}
double f(double t) {
        double r51851 = 1.7e+308;
        double r51852 = t;
        double r51853 = r51851 * r51852;
        double r51854 = r51853 - r51851;
        return r51854;
}

double f(double t) {
        double r51855 = 1.7e+308;
        double r51856 = t;
        double r51857 = r51855 * r51856;
        double r51858 = r51857 - r51855;
        return r51858;
}

Error

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original64.0
Target0
Herbie64.0
\[\mathsf{fma}\left(1.699999999999999938830795788659981743333 \cdot 10^{308}, t, -1.699999999999999938830795788659981743333 \cdot 10^{308}\right)\]

Derivation

  1. Initial program 64.0

    \[1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]
  2. Final simplification64.0

    \[\leadsto 1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]

Reproduce

herbie shell --seed 2019304 
(FPCore (t)
  :name "fma_test2"
  :precision binary64
  :pre (<= 1.8999999999999999 t 2.10000000000000009)

  :herbie-target
  (fma 1.6999999999999999e308 t (- 1.6999999999999999e308))

  (- (* 1.6999999999999999e308 t) 1.6999999999999999e308))