\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 30.4
rmApplied sqrt-prod_binary6430.5
Simplified0.4
rmApplied add-sqr-sqrt_binary640.6
Applied associate-*l*_binary640.4
Simplified0.4
rmApplied add-sqr-sqrt_binary640.4
Applied associate-*l*_binary640.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2020232
(FPCore (x)
:name "sqrt C"
:precision binary64
(sqrt (* 2.0 (* x x))))