Average Error: 0 → 0
Time: 861.0ms
Precision: 64
\[100 \cdot \frac{x - x}{x}\]
\[\frac{x - x}{x} \cdot 100\]
100 \cdot \frac{x - x}{x}
\frac{x - x}{x} \cdot 100
double f(double x) {
        double r240912 = 100.0;
        double r240913 = x;
        double r240914 = r240913 - r240913;
        double r240915 = r240914 / r240913;
        double r240916 = r240912 * r240915;
        return r240916;
}

double f(double x) {
        double r240917 = x;
        double r240918 = r240917 - r240917;
        double r240919 = r240918 / r240917;
        double r240920 = 100.0;
        double r240921 = r240919 * r240920;
        return r240921;
}

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 \frac{x - x}{x} \cdot 100\]

Reproduce

herbie shell --seed 2019196 
(FPCore (x)
  :name "ReportTypes:explainFloat from gipeda-0.1.2.1"

  :herbie-target
  0.0

  (* 100.0 (/ (- x x) x)))