Average Error: 0 → 0
Time: 660.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 r202103 = 100.0;
        double r202104 = x;
        double r202105 = r202104 - r202104;
        double r202106 = r202105 / r202104;
        double r202107 = r202103 * r202106;
        return r202107;
}

double f(double x) {
        double r202108 = 100.0;
        double r202109 = x;
        double r202110 = r202109 - r202109;
        double r202111 = r202110 / r202109;
        double r202112 = r202108 * r202111;
        return r202112;
}

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

  :herbie-target
  0.0

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