\frac{x \cdot x - 3}{6}\left(x \cdot \sqrt{0.166666666666666657}\right) \cdot \left(x \cdot \sqrt{0.166666666666666657}\right) - 0.5double code(double x) {
return (((x * x) - 3.0) / 6.0);
}
double code(double x) {
return (((x * sqrt(0.16666666666666666)) * (x * sqrt(0.16666666666666666))) - 0.5);
}



Bits error versus x
Results
Initial program 0.1
Taylor expanded around 0 0.1
rmApplied add-sqr-sqrt31.8
Applied unpow-prod-down31.8
Applied add-sqr-sqrt31.8
Applied unswap-sqr31.8
Simplified31.8
Simplified0.2
Final simplification0.2
herbie shell --seed 2020091
(FPCore (x)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, H"
:precision binary64
(/ (- (* x x) 3) 6))