Average Error: 10.2 → 0.2
Time: 6.4s
Precision: 64
\[\frac{x}{y \cdot y}\]
\[\frac{1}{y} \cdot \frac{x}{y}\]
\frac{x}{y \cdot y}
\frac{1}{y} \cdot \frac{x}{y}
double f(double x, double y) {
        double r200979 = x;
        double r200980 = y;
        double r200981 = r200980 * r200980;
        double r200982 = r200979 / r200981;
        return r200982;
}

double f(double x, double y) {
        double r200983 = 1.0;
        double r200984 = y;
        double r200985 = r200983 / r200984;
        double r200986 = x;
        double r200987 = r200986 / r200984;
        double r200988 = r200985 * r200987;
        return r200988;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original10.2
Target0.2
Herbie0.2
\[\frac{\frac{x}{y}}{y}\]

Derivation

  1. Initial program 10.2

    \[\frac{x}{y \cdot y}\]
  2. Using strategy rm
  3. Applied *-un-lft-identity10.2

    \[\leadsto \frac{\color{blue}{1 \cdot x}}{y \cdot y}\]
  4. Applied times-frac0.2

    \[\leadsto \color{blue}{\frac{1}{y} \cdot \frac{x}{y}}\]
  5. Final simplification0.2

    \[\leadsto \frac{1}{y} \cdot \frac{x}{y}\]

Reproduce

herbie shell --seed 2019208 
(FPCore (x y)
  :name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"
  :precision binary64

  :herbie-target
  (/ (/ x y) y)

  (/ x (* y y)))