Average Error: 0 → 0
Time: 1.1s
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 r239762 = 100.0;
        double r239763 = x;
        double r239764 = r239763 - r239763;
        double r239765 = r239764 / r239763;
        double r239766 = r239762 * r239765;
        return r239766;
}

double f(double x) {
        double r239767 = 100.0;
        double r239768 = x;
        double r239769 = r239768 - r239768;
        double r239770 = r239769 / r239768;
        double r239771 = r239767 * r239770;
        return r239771;
}

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

  :herbie-target
  0.0

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