Average Error: 0 → 0
Time: 1.1s
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 r188923 = 100.0;
        double r188924 = x;
        double r188925 = r188924 - r188924;
        double r188926 = r188925 / r188924;
        double r188927 = r188923 * r188926;
        return r188927;
}

double f(double x) {
        double r188928 = 100.0;
        double r188929 = x;
        double r188930 = r188929 - r188929;
        double r188931 = r188930 / r188929;
        double r188932 = r188928 * r188931;
        return r188932;
}

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

  :herbie-target
  0.0

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