\sqrt{2 \cdot \left(x \cdot x\right)}\sqrt{\sqrt{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{2}} \cdot \left|x\right|\right)\right)(FPCore (x) :precision binary64 (sqrt (* 2.0 (* x x))))
(FPCore (x) :precision binary64 (* (sqrt (sqrt (sqrt 2.0))) (* (sqrt (sqrt (sqrt 2.0))) (* (sqrt (sqrt 2.0)) (fabs x)))))
double code(double x) {
return sqrt(2.0 * (x * x));
}
double code(double x) {
return sqrt(sqrt(sqrt(2.0))) * (sqrt(sqrt(sqrt(2.0))) * (sqrt(sqrt(2.0)) * fabs(x)));
}



Bits error versus x
Results
Initial program 31.2
rmApplied add-sqr-sqrt_binary64_10031.4
rmApplied sqrt-prod_binary64_9431.4
Applied sqrt-prod_binary64_9431.4
Applied associate-*l*_binary64_1931.4
Simplified31.4
rmApplied sqrt-prod_binary64_9431.3
Applied sqrt-prod_binary64_9431.4
Applied associate-*l*_binary64_1931.4
Simplified0.4
rmApplied add-sqr-sqrt_binary64_1000.4
Applied associate-*l*_binary64_190.4
Final simplification0.4
herbie shell --seed 2021090
(FPCore (x)
:name "sqrt C"
:precision binary64
(sqrt (* 2.0 (* x x))))