Average Error: 0 → 0
Time: 319.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 r275620 = 100.0;
        double r275621 = x;
        double r275622 = r275621 - r275621;
        double r275623 = r275622 / r275621;
        double r275624 = r275620 * r275623;
        return r275624;
}

double f(double x) {
        double r275625 = 100.0;
        double r275626 = x;
        double r275627 = r275626 - r275626;
        double r275628 = r275627 / r275626;
        double r275629 = r275625 * r275628;
        return r275629;
}

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

  :herbie-target
  0.0

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