Average Error: 0 → 0
Time: 299.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 r409800 = 100.0;
        double r409801 = x;
        double r409802 = r409801 - r409801;
        double r409803 = r409802 / r409801;
        double r409804 = r409800 * r409803;
        return r409804;
}

double f(double x) {
        double r409805 = 100.0;
        double r409806 = x;
        double r409807 = r409806 - r409806;
        double r409808 = r409807 / r409806;
        double r409809 = r409805 * r409808;
        return r409809;
}

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

  :herbie-target
  0.0

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