\sqrt{\left(2 \cdot x\right) \cdot x}\begin{array}{l}
\mathbf{if}\;x \leq -2.8491681377424 \cdot 10^{-310}:\\
\;\;\;\;-x \cdot \sqrt{2}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot {\left(\sqrt{\sqrt{2}}\right)}^{1.5}\right) \cdot \sqrt{\sqrt{\sqrt{2}}}\\
\end{array}(FPCore (x) :precision binary64 (sqrt (* (* 2.0 x) x)))
(FPCore (x) :precision binary64 (if (<= x -2.8491681377424e-310) (- (* x (sqrt 2.0))) (* (* x (pow (sqrt (sqrt 2.0)) 1.5)) (sqrt (sqrt (sqrt 2.0))))))
double code(double x) {
return ((double) sqrt(((double) (((double) (2.0 * x)) * x))));
}
double code(double x) {
double tmp;
if ((x <= -2.8491681377424e-310)) {
tmp = ((double) -(((double) (x * ((double) sqrt(2.0))))));
} else {
tmp = ((double) (((double) (x * ((double) pow(((double) sqrt(((double) sqrt(2.0)))), 1.5)))) * ((double) sqrt(((double) sqrt(((double) sqrt(2.0))))))));
}
return tmp;
}



Bits error versus x
Results
if x < -2.849168137742421e-310Initial program 30.5
Taylor expanded around -inf 0.4
Simplified0.4
if -2.849168137742421e-310 < x Initial program 30.2
Taylor expanded around 0 0.4
Simplified0.4
rmApplied add-sqr-sqrt_binary640.4
Applied sqrt-prod_binary640.6
Applied associate-*r*_binary640.4
rmApplied add-sqr-sqrt_binary640.4
Applied sqrt-prod_binary640.4
Applied sqrt-prod_binary640.4
Applied associate-*r*_binary640.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2020204
(FPCore (x)
:name "sqrt B"
:precision binary64
(sqrt (* (* 2.0 x) x)))