\frac{x \cdot x - 3}{6}\frac{\mathsf{fma}\left(x, x, -3\right)}{6}double code(double x) {
return (((x * x) - 3.0) / 6.0);
}
double code(double x) {
return (fma(x, x, -3.0) / 6.0);
}



Bits error versus x
Results
Initial program 0.1
rmApplied fma-neg0.1
Final simplification0.1
herbie shell --seed 2020075 +o rules:numerics
(FPCore (x)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, H"
:precision binary64
(/ (- (* x x) 3) 6))