Average Error: 0.6 → 0.2
Time: 5.3s
Precision: 64
\[\frac{1}{x \cdot x}\]
\[\frac{\frac{1}{x}}{x}\]
\frac{1}{x \cdot x}
\frac{\frac{1}{x}}{x}
double f(double x) {
        double r32482440 = 1.0;
        double r32482441 = x;
        double r32482442 = r32482441 * r32482441;
        double r32482443 = r32482440 / r32482442;
        return r32482443;
}

double f(double x) {
        double r32482444 = 1.0;
        double r32482445 = x;
        double r32482446 = r32482444 / r32482445;
        double r32482447 = r32482446 / r32482445;
        return r32482447;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.6

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

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

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

Reproduce

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