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



Bits error versus x
Results
Initial program 29.9
Applied egg-rr0.4
Applied egg-rr1.4
Applied egg-rr0.4
Final simplification0.4
herbie shell --seed 2022129
(FPCore (x)
:name "sqrt D"
:precision binary64
(sqrt (* 2.0 (pow x 2.0))))