Average Error: 0 → 0
Time: 337.0ms
Precision: 64
\[100 \cdot \frac{x - x}{x}\]
\[100 \cdot \frac{x - x}{x}\]
100 \cdot \frac{x - x}{x}
100 \cdot \frac{x - x}{x}
double f(double x) {
        double r301768 = 100.0;
        double r301769 = x;
        double r301770 = r301769 - r301769;
        double r301771 = r301770 / r301769;
        double r301772 = r301768 * r301771;
        return r301772;
}

double f(double x) {
        double r301773 = 100.0;
        double r301774 = x;
        double r301775 = r301774 - r301774;
        double r301776 = r301775 / r301774;
        double r301777 = r301773 * r301776;
        return r301777;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0
Target0
Herbie0
\[0.0\]

Derivation

  1. Initial program 0

    \[100 \cdot \frac{x - x}{x}\]
  2. Final simplification0

    \[\leadsto 100 \cdot \frac{x - x}{x}\]

Reproduce

herbie shell --seed 2020083 +o rules:numerics
(FPCore (x)
  :name "ReportTypes:explainFloat from gipeda-0.1.2.1"
  :precision binary64

  :herbie-target
  0.0

  (* 100 (/ (- x x) x)))