Average Error: 16.6 → 16.6
Time: 798.0ms
Precision: binary64
\[\sqrt{\left({x}^{2} - 6 \cdot x\right) + 8} - 4\]
\[\sqrt{\left({x}^{2} - 6 \cdot x\right) + 8} - 4\]
\sqrt{\left({x}^{2} - 6 \cdot x\right) + 8} - 4
\sqrt{\left({x}^{2} - 6 \cdot x\right) + 8} - 4
double code(double x) {
	return ((double) (((double) sqrt(((double) (((double) (((double) pow(x, 2.0)) - ((double) (6.0 * x)))) + 8.0)))) - 4.0));
}
double code(double x) {
	return ((double) (((double) sqrt(((double) (((double) (((double) pow(x, 2.0)) - ((double) (6.0 * x)))) + 8.0)))) - 4.0));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 16.6

    \[\sqrt{\left({x}^{2} - 6 \cdot x\right) + 8} - 4\]
  2. Final simplification16.6

    \[\leadsto \sqrt{\left({x}^{2} - 6 \cdot x\right) + 8} - 4\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(- (sqrt (+ (- (pow x 2) (* 6 x)) 8)) 4)"
  :precision binary64
  (- (sqrt (+ (- (pow x 2.0) (* 6.0 x)) 8.0)) 4.0))