Average Error: 15.6 → 15.6
Time: 604.0ms
Precision: binary64
\[\frac{x + y}{x \cdot y}\]
\[\frac{x + y}{x \cdot y}\]
\frac{x + y}{x \cdot y}
\frac{x + y}{x \cdot y}
double code(double x, double y) {
	return ((double) (((double) (x + y)) / ((double) (x * y))));
}
double code(double x, double y) {
	return ((double) (((double) (x + y)) / ((double) (x * y))));
}

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 15.6

    \[\frac{x + y}{x \cdot y}\]
  2. Final simplification15.6

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

Reproduce

herbie shell --seed 2020152 
(FPCore (x y)
  :name "(/ (+ x y) (* x y))"
  :precision binary64
  (/ (+ x y) (* x y)))