Average Error: 0 → 0
Time: 751.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 r304622 = 100.0;
        double r304623 = x;
        double r304624 = r304623 - r304623;
        double r304625 = r304624 / r304623;
        double r304626 = r304622 * r304625;
        return r304626;
}

double f(double x) {
        double r304627 = x;
        double r304628 = r304627 - r304627;
        double r304629 = r304628 / r304627;
        double r304630 = 100.0;
        double r304631 = r304629 * r304630;
        return r304631;
}

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

  :herbie-target
  0.0

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