1 - \sqrt{0.5 \cdot \left(1 + \frac{1}{\mathsf{hypot}\left(1, x\right)}\right)}\frac{\frac{{\left(1 \cdot \left(1 - 0.5\right)\right)}^{3} - {\left(0.5 \cdot \frac{1}{\sqrt[3]{{\left(\mathsf{hypot}\left(1, x\right)\right)}^{3}}}\right)}^{3}}{\left(1 - 0.5\right) \cdot \left(\left(1 \cdot \left(1 - 0.5\right)\right) \cdot 1 + 1 \cdot \frac{0.5 \cdot 1}{\mathsf{hypot}\left(1, x\right)}\right) + \left(0.5 \cdot 0.5\right) \cdot \left(\frac{1}{\mathsf{hypot}\left(1, x\right)} \cdot \frac{1}{\mathsf{hypot}\left(1, x\right)}\right)}}{1 + \sqrt{0.5 \cdot \left(1 + \frac{1}{\mathsf{hypot}\left(1, x\right)}\right)}}double code(double x) {
return ((double) (1.0 - ((double) sqrt(((double) (0.5 * ((double) (1.0 + ((double) (1.0 / ((double) hypot(1.0, x))))))))))));
}
double code(double x) {
return ((double) (((double) (((double) (((double) pow(((double) (1.0 * ((double) (1.0 - 0.5)))), 3.0)) - ((double) pow(((double) (0.5 * ((double) (1.0 / ((double) cbrt(((double) pow(((double) hypot(1.0, x)), 3.0)))))))), 3.0)))) / ((double) (((double) (((double) (1.0 - 0.5)) * ((double) (((double) (((double) (1.0 * ((double) (1.0 - 0.5)))) * 1.0)) + ((double) (1.0 * ((double) (((double) (0.5 * 1.0)) / ((double) hypot(1.0, x)))))))))) + ((double) (((double) (0.5 * 0.5)) * ((double) (((double) (1.0 / ((double) hypot(1.0, x)))) * ((double) (1.0 / ((double) hypot(1.0, x)))))))))))) / ((double) (1.0 + ((double) sqrt(((double) (0.5 * ((double) (1.0 + ((double) (1.0 / ((double) hypot(1.0, x))))))))))))));
}



Bits error versus x
Results
Initial program 15.3
rmApplied flip--15.3
Simplified14.8
rmApplied add-cbrt-cube14.8
Simplified14.8
rmApplied flip3--14.8
Simplified14.8
Final simplification14.8
herbie shell --seed 2020161
(FPCore (x)
:name "Given's Rotation SVD example, simplified"
:precision binary64
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))