Average Error: 16.1 → 16.1
Time: 742.0ms
Precision: binary64
\[\frac{{\left(x - 1\right)}^{2}}{x}\]
\[\frac{{\left(x - 1\right)}^{2}}{x}\]
\frac{{\left(x - 1\right)}^{2}}{x}
\frac{{\left(x - 1\right)}^{2}}{x}
double code(double x) {
	return ((double) (((double) pow(((double) (x - 1.0)), 2.0)) / x));
}
double code(double x) {
	return ((double) (((double) pow(((double) (x - 1.0)), 2.0)) / x));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 16.1

    \[\frac{{\left(x - 1\right)}^{2}}{x}\]
  2. Final simplification16.1

    \[\leadsto \frac{{\left(x - 1\right)}^{2}}{x}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (pow (- x 1) 2) x)"
  :precision binary64
  (/ (pow (- x 1.0) 2.0) x))