Average Error: 49.2 → 49.2
Time: 2.9s
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 r11492948 = 1.7e+308;
        double r11492949 = t;
        double r11492950 = r11492948 * r11492949;
        double r11492951 = r11492950 - r11492948;
        return r11492951;
}

double f(double t) {
        double r11492952 = 1.7e+308;
        double r11492953 = t;
        double r11492954 = r11492952 * r11492953;
        double r11492955 = r11492954 - r11492952;
        return r11492955;
}

Error

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

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

Derivation

  1. Initial program 49.2

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

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

Reproduce

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