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



Bits error versus x
Initial program 0.2
Simplified0.2
Applied clear-num_binary640.2
Applied *-un-lft-identity_binary640.2
Applied add-sqr-sqrt_binary641.0
Applied times-frac_binary641.1
Simplified1.1
Taylor expanded in x around 0 0.4
Simplified0.1
Final simplification0.1
herbie shell --seed 2022081
(FPCore (x)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, H"
:precision binary64
(/ (- (* x x) 3.0) 6.0))