Average Error: 0 → 0
Time: 571.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 r239147 = 100.0;
        double r239148 = x;
        double r239149 = r239148 - r239148;
        double r239150 = r239149 / r239148;
        double r239151 = r239147 * r239150;
        return r239151;
}

double f(double x) {
        double r239152 = 100.0;
        double r239153 = x;
        double r239154 = r239153 - r239153;
        double r239155 = r239154 / r239153;
        double r239156 = r239152 * r239155;
        return r239156;
}

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

  :herbie-target
  0.0

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