Average Error: 0 → 0
Time: 298.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 r908008 = 100.0;
        double r908009 = x;
        double r908010 = r908009 - r908009;
        double r908011 = r908010 / r908009;
        double r908012 = r908008 * r908011;
        return r908012;
}

double f(double x) {
        double r908013 = 100.0;
        double r908014 = x;
        double r908015 = r908014 - r908014;
        double r908016 = r908015 / r908014;
        double r908017 = r908013 * r908016;
        return r908017;
}

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)))