Average Error: 0 → 0
Time: 614.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 r197031 = 100.0;
        double r197032 = x;
        double r197033 = r197032 - r197032;
        double r197034 = r197033 / r197032;
        double r197035 = r197031 * r197034;
        return r197035;
}

double f(double x) {
        double r197036 = 100.0;
        double r197037 = x;
        double r197038 = r197037 - r197037;
        double r197039 = r197038 / r197037;
        double r197040 = r197036 * r197039;
        return r197040;
}

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 2019208 
(FPCore (x)
  :name "ReportTypes:explainFloat from gipeda-0.1.2.1"
  :precision binary64

  :herbie-target
  0.0

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