Average Error: 0.1 → 0.1
Time: 814.0ms
Precision: binary64
\[\sqrt{\frac{2}{\left|\left(x + y\right) - z\right|}}\]
\[\sqrt{\frac{2}{\left|\left(x + y\right) - z\right|}}\]
\sqrt{\frac{2}{\left|\left(x + y\right) - z\right|}}
\sqrt{\frac{2}{\left|\left(x + y\right) - z\right|}}
double code(double x, double y, double z) {
	return ((double) sqrt(((double) (2.0 / ((double) fabs(((double) (((double) (x + y)) - z))))))));
}
double code(double x, double y, double z) {
	return ((double) sqrt(((double) (2.0 / ((double) fabs(((double) (((double) (x + y)) - z))))))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\sqrt{\frac{2}{\left|\left(x + y\right) - z\right|}}\]
  2. Final simplification0.1

    \[\leadsto \sqrt{\frac{2}{\left|\left(x + y\right) - z\right|}}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y z)
  :name "(sqrt (/ 2.0 (fabs (- (+ x y) z))))"
  :precision binary64
  (sqrt (/ 2.0 (fabs (- (+ x y) z)))))