Average Error: 64.0 → 64.0
Time: 9.5s
Precision: 64
\[1.899999999999999911182158029987476766109 \le t \le 2.100000000000000088817841970012523233891\]
\[1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]
\[t \cdot 1.699999999999999938830795788659981743333 \cdot 10^{308} - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]
1.699999999999999938830795788659981743333 \cdot 10^{308} \cdot t - 1.699999999999999938830795788659981743333 \cdot 10^{308}
t \cdot 1.699999999999999938830795788659981743333 \cdot 10^{308} - 1.699999999999999938830795788659981743333 \cdot 10^{308}
double f(double t) {
        double r3676826 = 1.7e+308;
        double r3676827 = t;
        double r3676828 = r3676826 * r3676827;
        double r3676829 = r3676828 - r3676826;
        return r3676829;
}

double f(double t) {
        double r3676830 = t;
        double r3676831 = 1.7e+308;
        double r3676832 = r3676830 * r3676831;
        double r3676833 = r3676832 - r3676831;
        return r3676833;
}

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 t \cdot 1.699999999999999938830795788659981743333 \cdot 10^{308} - 1.699999999999999938830795788659981743333 \cdot 10^{308}\]

Reproduce

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