\frac{x \cdot x - 3}{6}1 \cdot \left(\frac{\sqrt{x \cdot x}}{6} \cdot \left|x\right|\right) - \frac{3}{6}double code(double x) {
return ((double) (((double) (((double) (x * x)) - 3.0)) / 6.0));
}
double code(double x) {
return ((double) (((double) (1.0 * ((double) (((double) (((double) sqrt(((double) (x * x)))) / 6.0)) * ((double) fabs(x)))))) - ((double) (3.0 / 6.0))));
}



Bits error versus x
Results
Initial program 0.2
rmApplied div-sub0.2
rmApplied add-sqr-sqrt0.2
Applied associate-/l*0.2
rmApplied *-un-lft-identity0.2
Applied sqrt-prod0.2
Applied *-un-lft-identity0.2
Applied times-frac0.2
Applied *-un-lft-identity0.2
Applied sqrt-prod0.2
Applied times-frac0.2
Simplified0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020114 +o rules:numerics
(FPCore (x)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, H"
:precision binary64
(/ (- (* x x) 3) 6))