Average Error: 49.1 → 49.1
Time: 1.5s
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 r2924162 = 1.7e+308;
        double r2924163 = t;
        double r2924164 = r2924162 * r2924163;
        double r2924165 = r2924164 - r2924162;
        return r2924165;
}

double f(double t) {
        double r2924166 = 1.7e+308;
        double r2924167 = t;
        double r2924168 = r2924166 * r2924167;
        double r2924169 = r2924168 - r2924166;
        return r2924169;
}

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(\left( 1.7 \cdot 10^{+308} \right), t, \left(-1.7 \cdot 10^{+308}\right)\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 2019121 
(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))