Average Error: 0 → 0
Time: 794.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 r208757 = 100.0;
        double r208758 = x;
        double r208759 = r208758 - r208758;
        double r208760 = r208759 / r208758;
        double r208761 = r208757 * r208760;
        return r208761;
}

double f(double x) {
        double r208762 = x;
        double r208763 = r208762 - r208762;
        double r208764 = r208763 / r208762;
        double r208765 = 100.0;
        double r208766 = r208764 * r208765;
        return r208766;
}

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

  :herbie-target
  0.0

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