Average Error: 28.0 → 28.0
Time: 970.0ms
Precision: binary64
\[\sqrt{\left(1 + {x}^{2}\right) + {y}^{2}}\]
\[\sqrt{\left(1 + {x}^{2}\right) + {y}^{2}}\]
\sqrt{\left(1 + {x}^{2}\right) + {y}^{2}}
\sqrt{\left(1 + {x}^{2}\right) + {y}^{2}}
double code(double x, double y) {
	return ((double) sqrt(((double) (((double) (1.0 + ((double) pow(x, 2.0)))) + ((double) pow(y, 2.0))))));
}
double code(double x, double y) {
	return ((double) sqrt(((double) (((double) (1.0 + ((double) pow(x, 2.0)))) + ((double) pow(y, 2.0))))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 28.0

    \[\sqrt{\left(1 + {x}^{2}\right) + {y}^{2}}\]
  2. Final simplification28.0

    \[\leadsto \sqrt{\left(1 + {x}^{2}\right) + {y}^{2}}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(sqrt (+ (+ 1 (pow x 2)) (pow y 2)))"
  :precision binary64
  (sqrt (+ (+ 1.0 (pow x 2.0)) (pow y 2.0))))