\sqrt{\frac{\mathsf{hypot}\left(a, b\right) + a}{2}}\sqrt{\frac{\mathsf{hypot}\left(a, b\right) + a}{2}}double code(double a, double b) {
return ((double) sqrt(((double) (((double) (((double) hypot(a, b)) + a)) / 2.0))));
}
double code(double a, double b) {
return ((double) sqrt(((double) (((double) (((double) hypot(a, b)) + a)) / 2.0))));
}



Bits error versus a



Bits error versus b
Results
Initial program 13.1
Final simplification13.1
herbie shell --seed 2020153
(FPCore (a b)
:name "(sqrt (/ (+ (hypot a b) a) 2))"
:precision binary64
(sqrt (/ (+ (hypot a b) a) 2.0)))