Average Error: 0.6 → 0.2
Time: 9.8s
Precision: 64
\[\frac{1}{x \cdot y}\]
\[\frac{\frac{1}{x}}{y}\]
\frac{1}{x \cdot y}
\frac{\frac{1}{x}}{y}
double f(double x, double y) {
        double r9148291 = 1.0;
        double r9148292 = x;
        double r9148293 = y;
        double r9148294 = r9148292 * r9148293;
        double r9148295 = r9148291 / r9148294;
        return r9148295;
}

double f(double x, double y) {
        double r9148296 = 1.0;
        double r9148297 = x;
        double r9148298 = r9148296 / r9148297;
        double r9148299 = y;
        double r9148300 = r9148298 / r9148299;
        return r9148300;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.6

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

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

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

Reproduce

herbie shell --seed 1 
(FPCore (x y)
  :name "1/(x*y)"
  (/ 1 (* x y)))