Average Error: 31.7 → 31.7
Time: 1.2s
Precision: binary64
\[\frac{\sqrt{x}}{x - \left(x + 1.00000000000000005 \cdot 10^{-4}\right)}\]
\[\frac{\sqrt{x}}{x - \left(x + 1.00000000000000005 \cdot 10^{-4}\right)}\]
\frac{\sqrt{x}}{x - \left(x + 1.00000000000000005 \cdot 10^{-4}\right)}
\frac{\sqrt{x}}{x - \left(x + 1.00000000000000005 \cdot 10^{-4}\right)}
double code(double x) {
	return ((double) (((double) sqrt(x)) / ((double) (x - ((double) (x + 0.0001))))));
}
double code(double x) {
	return ((double) (((double) sqrt(x)) / ((double) (x - ((double) (x + 0.0001))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 31.7

    \[\frac{\sqrt{x}}{x - \left(x + 1.00000000000000005 \cdot 10^{-4}\right)}\]
  2. Final simplification31.7

    \[\leadsto \frac{\sqrt{x}}{x - \left(x + 1.00000000000000005 \cdot 10^{-4}\right)}\]

Reproduce

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