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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 62.9

    \[x - \frac{\sqrt{\left(\left(x \cdot x\right) \cdot x\right) \cdot x - 1}}{x}\]
  2. Final simplification62.9

    \[\leadsto x - \frac{\sqrt{\left(\left(x \cdot x\right) \cdot x\right) \cdot x - 1}}{x}\]

Reproduce

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