Average Error: 0 → 0
Time: 302.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 r351865 = 100.0;
        double r351866 = x;
        double r351867 = r351866 - r351866;
        double r351868 = r351867 / r351866;
        double r351869 = r351865 * r351868;
        return r351869;
}

double f(double x) {
        double r351870 = 100.0;
        double r351871 = x;
        double r351872 = r351871 - r351871;
        double r351873 = r351872 / r351871;
        double r351874 = r351870 * r351873;
        return r351874;
}

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

  :herbie-target
  0.0

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