Average Error: 0 → 0
Time: 343.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 r303325 = 100.0;
        double r303326 = x;
        double r303327 = r303326 - r303326;
        double r303328 = r303327 / r303326;
        double r303329 = r303325 * r303328;
        return r303329;
}

double f(double x) {
        double r303330 = 100.0;
        double r303331 = x;
        double r303332 = r303331 - r303331;
        double r303333 = r303332 / r303331;
        double r303334 = r303330 * r303333;
        return r303334;
}

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

  :herbie-target
  0.0

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