\frac{x \cdot x - 3}{6}0.166666666666666657 \cdot {x}^{2} - 0.5double code(double x) {
return ((double) (((double) (((double) (x * x)) - 3.0)) / 6.0));
}
double code(double x) {
return ((double) (((double) (0.16666666666666666 * ((double) pow(x, 2.0)))) - 0.5));
}



Bits error versus x
Results
Initial program 0.1
Taylor expanded around 0 0.2
Final simplification0.2
herbie shell --seed 2020171
(FPCore (x)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, H"
:precision binary64
(/ (- (* x x) 3.0) 6.0))