Average Error: 12.4 → 12.4
Time: 1.1s
Precision: binary64
\[\frac{1}{\frac{\left(x \cdot x\right) \cdot 1}{\sqrt{x}}}\]
\[\frac{\sqrt{x}}{x \cdot x}\]
\frac{1}{\frac{\left(x \cdot x\right) \cdot 1}{\sqrt{x}}}
\frac{\sqrt{x}}{x \cdot x}
double code(double x) {
	return ((double) (1.0 / ((double) (((double) (((double) (x * x)) * 1.0)) / ((double) sqrt(x))))));
}
double code(double x) {
	return ((double) (((double) sqrt(x)) / ((double) (x * x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 12.4

    \[\frac{1}{\frac{\left(x \cdot x\right) \cdot 1}{\sqrt{x}}}\]
  2. Simplified12.4

    \[\leadsto \color{blue}{\frac{\sqrt{x}}{x \cdot x}}\]
  3. Final simplification12.4

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

Reproduce

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