Average Error: 64.0 → 64.0
Time: 633.0ms
Precision: 64
\[1.8999999999999999 \le t \le 2.10000000000000009\]
\[1.6999999999999999 \cdot 10^{308} \cdot t - 1.6999999999999999 \cdot 10^{308}\]
\[1.6999999999999999 \cdot 10^{308} \cdot t - 1.6999999999999999 \cdot 10^{308}\]
1.6999999999999999 \cdot 10^{308} \cdot t - 1.6999999999999999 \cdot 10^{308}
1.6999999999999999 \cdot 10^{308} \cdot t - 1.6999999999999999 \cdot 10^{308}
double f(double t) {
        double r85282 = 1.7e+308;
        double r85283 = t;
        double r85284 = r85282 * r85283;
        double r85285 = r85284 - r85282;
        return r85285;
}

double f(double t) {
        double r85286 = 1.7e+308;
        double r85287 = t;
        double r85288 = r85286 * r85287;
        double r85289 = r85288 - r85286;
        return r85289;
}

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.6999999999999999 \cdot 10^{308}, t, -1.6999999999999999 \cdot 10^{308}\right)\]

Derivation

  1. Initial program 64.0

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

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

Reproduce

herbie shell --seed 2020060 
(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))