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



Bits error versus x
Results
Initial program 30.3
rmApplied sqrt-prod_binary6430.4
Simplified0.4
rmApplied add-cube-cbrt_binary640.4
Applied associate-*l*_binary640.4
Simplified0.4
rmApplied add-cube-cbrt_binary640.4
Applied associate-*r*_binary640.4
Final simplification0.4
herbie shell --seed 2021118
(FPCore (x)
:name "sqrt C"
:precision binary64
(sqrt (* 2.0 (* x x))))