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

Error

Bits error versus y

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 21.5

    \[\frac{y \cdot y}{x \cdot x}\]
  2. Final simplification21.5

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

Reproduce

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