Average Error: 49.1 → 49.1
Time: 3.0s
Precision: 64
\[1.9 \le t \le 2.1\]
\[1.7 \cdot 10^{+308} \cdot t - 1.7 \cdot 10^{+308}\]
\[1.7 \cdot 10^{+308} \cdot t - 1.7 \cdot 10^{+308}\]
1.7 \cdot 10^{+308} \cdot t - 1.7 \cdot 10^{+308}
1.7 \cdot 10^{+308} \cdot t - 1.7 \cdot 10^{+308}
double f(double t) {
        double r3331917 = 1.7e+308;
        double r3331918 = t;
        double r3331919 = r3331917 * r3331918;
        double r3331920 = r3331919 - r3331917;
        return r3331920;
}

double f(double t) {
        double r3331921 = 1.7e+308;
        double r3331922 = t;
        double r3331923 = r3331921 * r3331922;
        double r3331924 = r3331923 - r3331921;
        return r3331924;
}

Error

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original49.1
Target0
Herbie49.1
\[\mathsf{fma}\left(1.7 \cdot 10^{+308}, t, -1.7 \cdot 10^{+308}\right)\]

Derivation

  1. Initial program 49.1

    \[1.7 \cdot 10^{+308} \cdot t - 1.7 \cdot 10^{+308}\]
  2. Final simplification49.1

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

Reproduce

herbie shell --seed 2019144 
(FPCore (t)
  :name "fma_test2"
  :pre (<= 1.9 t 2.1)

  :herbie-target
  (fma 1.7e+308 t (- 1.7e+308))

  (- (* 1.7e+308 t) 1.7e+308))