\sqrt{{x}^{2} + {x}^{2}}\begin{array}{l}
\mathbf{if}\;x \leq 3.8265285002463 \cdot 10^{-311}:\\
\;\;\;\;\sqrt{{x}^{2} \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \left(\sqrt[3]{\sqrt{2}} \cdot {\left({x}^{1}\right)}^{1}\right)\\
\end{array}(FPCore (x) :precision binary64 (sqrt (+ (pow x 2.0) (pow x 2.0))))
(FPCore (x)
:precision binary64
(if (<= x 3.8265285002463e-311)
(sqrt (* (pow x 2.0) 2.0))
(*
(* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))
(* (cbrt (sqrt 2.0)) (pow (pow x 1.0) 1.0)))))double code(double x) {
return ((double) sqrt(((double) (((double) pow(x, 2.0)) + ((double) pow(x, 2.0))))));
}
double code(double x) {
double tmp;
if ((x <= 3.8265285002463e-311)) {
tmp = ((double) sqrt(((double) (((double) pow(x, 2.0)) * 2.0))));
} else {
tmp = ((double) (((double) (((double) cbrt(((double) sqrt(2.0)))) * ((double) cbrt(((double) sqrt(2.0)))))) * ((double) (((double) cbrt(((double) sqrt(2.0)))) * ((double) pow(((double) pow(x, 1.0)), 1.0))))));
}
return tmp;
}



Bits error versus x
Results
if x < 3.82652850024632e-311Initial program 30.2
Simplified30.2
if 3.82652850024632e-311 < x Initial program 30.6
Simplified30.6
Taylor expanded around 0 0.4
Simplified0.4
rmApplied add-cube-cbrt_binary640.4
Applied associate-*l*_binary640.4
Simplified0.4
Final simplification14.9
herbie shell --seed 2020210
(FPCore (x)
:name "sqrt E"
:precision binary64
(sqrt (+ (pow x 2.0) (pow x 2.0))))