Average Error: 0 → 0
Time: 359.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 r405273 = 100.0;
        double r405274 = x;
        double r405275 = r405274 - r405274;
        double r405276 = r405275 / r405274;
        double r405277 = r405273 * r405276;
        return r405277;
}

double f(double x) {
        double r405278 = 100.0;
        double r405279 = x;
        double r405280 = r405279 - r405279;
        double r405281 = r405280 / r405279;
        double r405282 = r405278 * r405281;
        return r405282;
}

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

  :herbie-target
  0.0

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