Average Error: 0.3 → 0
Time: 661.0ms
Precision: binary64
\[\frac{2 \cdot x}{\frac{2}{y}}\]
\[x \cdot y\]
\frac{2 \cdot x}{\frac{2}{y}}
x \cdot y
double code(double x, double y) {
	return ((double) (((double) (2.0 * x)) / ((double) (2.0 / y))));
}
double code(double x, double y) {
	return ((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 0.3

    \[\frac{2 \cdot x}{\frac{2}{y}}\]
  2. Simplified0

    \[\leadsto \color{blue}{x \cdot y}\]
  3. Final simplification0

    \[\leadsto x \cdot y\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(/ (* 2 x) (/ 2 y))"
  :precision binary64
  (/ (* 2.0 x) (/ 2.0 y)))