Average Error: 0.4 → 0.2
Time: 11.2s
Precision: 64
\[\frac{x \cdot 100.0}{x + y}\]
\[\frac{x}{\frac{y + x}{100.0}}\]
\frac{x \cdot 100.0}{x + y}
\frac{x}{\frac{y + x}{100.0}}
double f(double x, double y) {
        double r37750522 = x;
        double r37750523 = 100.0;
        double r37750524 = r37750522 * r37750523;
        double r37750525 = y;
        double r37750526 = r37750522 + r37750525;
        double r37750527 = r37750524 / r37750526;
        return r37750527;
}

double f(double x, double y) {
        double r37750528 = x;
        double r37750529 = y;
        double r37750530 = r37750529 + r37750528;
        double r37750531 = 100.0;
        double r37750532 = r37750530 / r37750531;
        double r37750533 = r37750528 / r37750532;
        return r37750533;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.4
Target0.2
Herbie0.2
\[\frac{x}{1} \cdot \frac{100.0}{x + y}\]

Derivation

  1. Initial program 0.4

    \[\frac{x \cdot 100.0}{x + y}\]
  2. Using strategy rm
  3. Applied associate-/l*0.2

    \[\leadsto \color{blue}{\frac{x}{\frac{x + y}{100.0}}}\]
  4. Final simplification0.2

    \[\leadsto \frac{x}{\frac{y + x}{100.0}}\]

Reproduce

herbie shell --seed 2019164 
(FPCore (x y)
  :name "Development.Shake.Progress:message from shake-0.15.5"

  :herbie-target
  (* (/ x 1) (/ 100.0 (+ x y)))

  (/ (* x 100.0) (+ x y)))