Average Error: 22.0 → 22.0
Time: 769.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 22.0

    \[\frac{y \cdot y}{x \cdot x}\]
  2. Final simplification22.0

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

Reproduce

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